@ilo-org/twig 0.17.1 → 1.0.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 (92) hide show
  1. package/dist/components/{accordion-item → accordion}/accordion-item.twig +2 -2
  2. package/dist/components/card_detail/card_detail.twig +27 -27
  3. package/dist/components/card_detail/card_detail.wingsuit.yml +12 -0
  4. package/dist/components/card_factlist/card_factlist.twig +11 -11
  5. package/dist/components/card_factlist/card_factlist.wingsuit.yml +12 -0
  6. package/dist/components/card_feature/card_feature.twig +24 -24
  7. package/dist/components/card_feature/card_feature.wingsuit.yml +12 -0
  8. package/dist/components/card_multilink/card_multilink.twig +1 -1
  9. package/dist/components/card_multilink/card_multilink.wingsuit.yml +12 -0
  10. package/dist/components/card_promo/card_promo.twig +23 -23
  11. package/dist/components/card_promo/card_promo.wingsuit.yml +12 -0
  12. package/dist/components/card_stat/card_stat.twig +1 -1
  13. package/dist/components/card_stat/card_stat.wingsuit.yml +12 -0
  14. package/dist/components/card_text/card_text.twig +21 -21
  15. package/dist/components/card_text/card_text.wingsuit.yml +12 -0
  16. package/dist/components/cardgroup/cardgroup.twig +16 -18
  17. package/dist/components/cardgroup/cardgroup.wingsuit.yml +12 -0
  18. package/dist/components/checkbox/checkbox.twig +1 -1
  19. package/dist/components/checkbox/checkbox.wingsuit.yml +1 -0
  20. package/dist/components/datepicker/datepicker.twig +2 -2
  21. package/dist/components/dropdown/dropdown.twig +1 -1
  22. package/dist/components/dropdown/dropdown.wingsuit.yml +2 -1
  23. package/dist/components/fileupload/fileupload.twig +1 -1
  24. package/dist/components/fileupload/fileupload.wingsuit.yml +1 -0
  25. package/dist/components/{fieldset → form}/fieldset.twig +1 -1
  26. package/dist/components/form/form.twig +1 -1
  27. package/dist/components/{formcontrol → form}/formcontrol.twig +1 -1
  28. package/dist/components/{input → form}/input.twig +1 -1
  29. package/dist/components/list/list-item.twig +6 -0
  30. package/dist/components/list/list.twig +2 -2
  31. package/dist/components/list/list.wingsuit.yml +11 -11
  32. package/dist/components/list-item/list-item.wingsuit.yml +1 -1
  33. package/dist/components/navigation/navigation.behavior.js +1 -1
  34. package/dist/components/navigation/navigation.css +1 -1
  35. package/dist/components/navigation/navigation.twig +27 -27
  36. package/dist/components/navigation/navigation.wingsuit.yml +1 -0
  37. package/dist/components/numberpicker/numberpicker.twig +2 -2
  38. package/dist/components/numberpicker/numberpicker.wingsuit.yml +1 -0
  39. package/dist/components/promocard/promocard.css +1 -1
  40. package/dist/components/radio/radio.twig +1 -1
  41. package/dist/components/radio/radio.wingsuit.yml +1 -0
  42. package/dist/components/search/search.twig +3 -3
  43. package/dist/components/search/search.wingsuit.yml +1 -0
  44. package/dist/components/tag/tag.wingsuit.yml +4 -3
  45. package/dist/components/{tag → tags}/tag.twig +4 -4
  46. package/dist/components/tags/tags.twig +1 -1
  47. package/dist/components/tags/tags.wingsuit.yml +3 -3
  48. package/dist/components/textarea/textarea.twig +1 -1
  49. package/dist/components/textarea/textarea.wingsuit.yml +1 -0
  50. package/dist/components/textinput/textinput.twig +1 -1
  51. package/dist/components/textinput/textinput.wingsuit.yml +1 -0
  52. package/dist/components/toggle/toggle.twig +1 -1
  53. package/dist/components/toggle/toggle.wingsuit.yml +1 -0
  54. package/package.json +3 -3
  55. package/src/patterns/components/card_detail/card_detail.twig +27 -27
  56. package/src/patterns/components/card_detail/card_detail.wingsuit.yml +12 -0
  57. package/src/patterns/components/card_factlist/card_factlist.twig +11 -11
  58. package/src/patterns/components/card_factlist/card_factlist.wingsuit.yml +12 -0
  59. package/src/patterns/components/card_feature/card_feature.twig +24 -24
  60. package/src/patterns/components/card_feature/card_feature.wingsuit.yml +12 -0
  61. package/src/patterns/components/card_multilink/card_multilink.twig +1 -1
  62. package/src/patterns/components/card_multilink/card_multilink.wingsuit.yml +12 -0
  63. package/src/patterns/components/card_promo/card_promo.twig +23 -23
  64. package/src/patterns/components/card_promo/card_promo.wingsuit.yml +12 -0
  65. package/src/patterns/components/card_stat/card_stat.twig +1 -1
  66. package/src/patterns/components/card_stat/card_stat.wingsuit.yml +12 -0
  67. package/src/patterns/components/card_text/card_text.twig +21 -21
  68. package/src/patterns/components/card_text/card_text.wingsuit.yml +12 -0
  69. package/src/patterns/components/cardgroup/cardgroup.twig +16 -18
  70. package/src/patterns/components/cardgroup/cardgroup.wingsuit.yml +12 -0
  71. package/src/patterns/components/checkbox/checkbox.wingsuit.yml +1 -0
  72. package/src/patterns/components/dropdown/dropdown.wingsuit.yml +2 -1
  73. package/src/patterns/components/fileupload/fileupload.wingsuit.yml +1 -0
  74. package/src/patterns/components/list/list-item.twig +1 -1
  75. package/src/patterns/components/list/list-item.wingsuit.yml +1 -1
  76. package/src/patterns/components/list/list.twig +2 -2
  77. package/src/patterns/components/list/list.wingsuit.yml +11 -11
  78. package/src/patterns/components/navigation/navigation.js +27 -3
  79. package/src/patterns/components/navigation/navigation.twig +27 -27
  80. package/src/patterns/components/navigation/navigation.wingsuit.yml +1 -0
  81. package/src/patterns/components/numberpicker/numberpicker.wingsuit.yml +1 -0
  82. package/src/patterns/components/radio/radio.wingsuit.yml +1 -0
  83. package/src/patterns/components/search/search.wingsuit.yml +1 -0
  84. package/src/patterns/components/tags/tag.twig +4 -4
  85. package/src/patterns/components/tags/tag.wingsuit.yml +4 -3
  86. package/src/patterns/components/tags/tags.twig +1 -1
  87. package/src/patterns/components/tags/tags.wingsuit.yml +3 -3
  88. package/src/patterns/components/textarea/textarea.wingsuit.yml +1 -0
  89. package/src/patterns/components/textinput/textinput.wingsuit.yml +1 -0
  90. package/src/patterns/components/toggle/toggle.wingsuit.yml +1 -0
  91. package/dist/components/list-item/list-item.twig +0 -6
  92. /package/dist/components/{videoplayer → video}/videoplayer.twig +0 -0
@@ -3,35 +3,35 @@
3
3
  #}
4
4
 
5
5
  <div class="{{prefix}}--card {{prefix}}--card__type__detail {{prefix}}--card__action {{prefix}}--card__size__{{size}} {% if isvideo %} {{prefix}}--card__isvideo {% endif %}">
6
- <a class="{{prefix}}--card--link" href="{{link}}" title="{{title}}">
7
- <span class="{{prefix}}--card--link--text">{{title}}</span>
8
- </a>
9
- <div class="{{prefix}}--card--wrap">
10
- {% if image %}
11
- <div class="{{prefix}}--card--image--wrapper">
12
- {% include "@components/picture/picture.twig" with {
6
+ <a class="{{prefix}}--card--link" href="{{link}}" title="{{title}}">
7
+ <span class="{{prefix}}--card--link--text">{{title}}</span>
8
+ </a>
9
+ <div class="{{prefix}}--card--wrap">
10
+ {% if image %}
11
+ <div class="{{prefix}}--card--image--wrapper">
12
+ {% include "@components/picture/picture.twig" with {
13
13
  image: image,
14
14
  class: "card"
15
15
  }
16
16
  %}
17
- </div>
18
- {% endif %}
19
- <div class="{{prefix}}--card--content">
20
- {% if eyebrow %}
21
- <p class="{{prefix}}--card--eyebrow">{{eyebrow}}</p>
22
- {% endif %}
23
- {% if title %}
24
- <h3 class="{{prefix}}--card--title">{{title}}</h3>
25
- {% endif %}
26
- {% if intro %}
27
- <p class="{{prefix}}--card--intro">{{intro}}</p>
28
- {% endif %}
29
- {% if date %}
30
- <time class="{{prefix}}--card--date" datetime="{{date.unix}}">{{date.human}}</time>
31
- {% endif %}
32
- {% if dateExtra %}
33
- <p class="{{prefix}}--card--date-extra">{{dateExtra}}</p>
34
- {% endif %}
35
- </div>
36
- </div>
17
+ </div>
18
+ {% endif %}
19
+ <div class="{{prefix}}--card--content">
20
+ {% if eyebrow %}
21
+ <p class="{{prefix}}--card--eyebrow">{{eyebrow}}</p>
22
+ {% endif %}
23
+ {% if title %}
24
+ <{{titleLevel|default('p')}} class="{{ prefix }}--card--title">{{ title }}</{{titleLevel|default('p')}}>
25
+ {% endif %}
26
+ {% if intro %}
27
+ <p class="{{prefix}}--card--intro">{{intro}}</p>
28
+ {% endif %}
29
+ {% if date %}
30
+ <time class="{{prefix}}--card--date" datetime="{{date.unix}}">{{date.human}}</time>
31
+ {% endif %}
32
+ {% if dateExtra %}
33
+ <p class="{{prefix}}--card--date-extra">{{dateExtra}}</p>
34
+ {% endif %}
35
+ </div>
36
+ </div>
37
37
  </div>
@@ -69,3 +69,15 @@ detailcard:
69
69
  options:
70
70
  "true": "true"
71
71
  "false": "false"
72
+ titleLevel:
73
+ type: select
74
+ label: Title Element
75
+ description: HTML element used for the title
76
+ required: false
77
+ options:
78
+ p: p
79
+ h1: h1
80
+ h2: h2
81
+ h3: h3
82
+ h4: h4
83
+ h5: h5
@@ -1,21 +1,21 @@
1
1
  {#
2
2
  FACT LIST CARD COMPONENT
3
3
  #}
4
- <div class="{{prefix}}--card {{prefix}}--card__type__factlist {{prefix}}--card__size__{{size}} {{prefix}}--card__theme__{{theme}}">
5
- <div class="{{prefix}}--card--wrap">
6
- <div class="{{prefix}}--card--content">
7
- {% if title %}
8
- <h3 class="{{prefix}}--card--title">{{title}}</h3>
9
- {% endif %}
10
- {% if list %}
11
- {% include "@components/list/list.twig" with {
4
+ <div class="{{prefix}}--card {{prefix}}--card__type__factlist {{prefix}}--card__size__{{size}} {{prefix}}--card__theme__{{theme}}">
5
+ <div class="{{prefix}}--card--wrap">
6
+ <div class="{{prefix}}--card--content">
7
+ {% if title %}
8
+ <{{titleLevel|default('p')}} class="{{ prefix }}--card--title">{{ title }}</{{titleLevel|default('p')}}>
9
+ {% endif %}
10
+ {% if list %}
11
+ {% include "@components/list/list.twig" with {
12
12
  title: list.title,
13
13
  ordered: list.ordered,
14
14
  alignment: list.alignment,
15
15
  items: list.items,
16
16
  prefix: prefix,
17
17
  } only %}
18
- {% endif %}
19
- </div>
20
- </div>
18
+ {% endif %}
19
+ </div>
20
+ </div>
21
21
  </div>
@@ -44,3 +44,15 @@ factlistcard:
44
44
  options:
45
45
  dark: Dark
46
46
  light: Light
47
+ titleLevel:
48
+ type: select
49
+ label: Title Element
50
+ description: HTML element used for the title
51
+ required: false
52
+ options:
53
+ p: p
54
+ h1: h1
55
+ h2: h2
56
+ h3: h3
57
+ h4: h4
58
+ h5: h5
@@ -3,37 +3,37 @@
3
3
  #}
4
4
 
5
5
  <div class="{{prefix}}--card {{prefix}}--card__type__feature {{prefix}}--card__action {{prefix}}--card__theme__{{theme}} {{prefix}}--card__size__{{ size }} {% if isvideo %} {{prefix}}--card__isvideo {% endif %} {% if cta %} {{prefix}}--card__linklist {% endif %}">
6
- <a class="{{prefix}}--card--link" href="{{link}}" title="{{title}}">
7
- <span class="{{prefix}}--card--link--text">{{title}}</span>
8
- </a>
9
- <div class="{{prefix}}--card--wrap">
10
- {% if image %}
11
- <div class="{{prefix}}--card--image--wrapper">
12
- {% include "@components/picture/picture.twig" with {
6
+ <a class="{{prefix}}--card--link" href="{{link}}" title="{{title}}">
7
+ <span class="{{prefix}}--card--link--text">{{title}}</span>
8
+ </a>
9
+ <div class="{{prefix}}--card--wrap">
10
+ {% if image %}
11
+ <div class="{{prefix}}--card--image--wrapper">
12
+ {% include "@components/picture/picture.twig" with {
13
13
  image: image,
14
14
  class: "card"
15
15
  }
16
16
  %}
17
- </div>
18
- {% endif %}
19
- <div class="{{prefix}}--card--content">
20
- {% if eyebrow %}
21
- <p class="{{prefix}}--card--eyebrow">{{eyebrow}}</p>
22
- {% endif %}
23
- {% if title %}
24
- <h3 class="{{prefix}}--card--title">{{title}}</h3>
25
- {% endif %}
26
- {% if date %}
27
- <time class="{{prefix}}--card--date" datetime="{{date.unix}}">{{date.human}}</time>
28
- {% endif %}
29
- {% if cta %}
30
- {% include "@components/linklist/linklist.twig" with {
17
+ </div>
18
+ {% endif %}
19
+ <div class="{{prefix}}--card--content">
20
+ {% if eyebrow %}
21
+ <p class="{{prefix}}--card--eyebrow">{{eyebrow}}</p>
22
+ {% endif %}
23
+ {% if title %}
24
+ <{{titleLevel|default('p')}} class="{{ prefix }}--card--title">{{ title }}</{{titleLevel|default('p')}}>
25
+ {% endif %}
26
+ {% if date %}
27
+ <time class="{{prefix}}--card--date" datetime="{{date.unix}}">{{date.human}}</time>
28
+ {% endif %}
29
+ {% if cta %}
30
+ {% include "@components/linklist/linklist.twig" with {
31
31
  linkgroup: [{
32
32
  links: [cta]
33
33
  }],
34
34
  prefix: prefix
35
35
  } only %}
36
- {% endif %}
37
- </div>
38
- </div>
36
+ {% endif %}
37
+ </div>
38
+ </div>
39
39
  </div>
@@ -78,3 +78,15 @@ featurecard:
78
78
  options:
79
79
  dark: Dark
80
80
  light: Light
81
+ titleLevel:
82
+ type: select
83
+ label: Title Element
84
+ description: HTML element used for the title
85
+ required: false
86
+ options:
87
+ p: p
88
+ h1: h1
89
+ h2: h2
90
+ h3: h3
91
+ h4: h4
92
+ h5: h5
@@ -19,7 +19,7 @@
19
19
  <p class="{{prefix}}--card--eyebrow">{{eyebrow}}</p>
20
20
  {% endif %}
21
21
  {% if title %}
22
- <h3 class="{{prefix}}--card--title">{{title}}</h3>
22
+ <{{titleLevel|default('p')}} class="{{ prefix }}--card--title">{{ title }}</{{titleLevel|default('p')}}>
23
23
  {% endif %}
24
24
  {% if image %}
25
25
  <div class="{{prefix}}--card--image--wrapper">
@@ -89,3 +89,15 @@ multilinkcard:
89
89
  narrow: narrow
90
90
  wide: wide
91
91
  fluid: fluid
92
+ titleLevel:
93
+ type: select
94
+ label: Title Element
95
+ description: HTML element used for the title
96
+ required: false
97
+ options:
98
+ p: p
99
+ h1: h1
100
+ h2: h2
101
+ h3: h3
102
+ h4: h4
103
+ h5: h5
@@ -3,33 +3,33 @@
3
3
  #}
4
4
 
5
5
  <div class="{{prefix}}--card--wrapper {{prefix}}--card--wrapper__type__promo {{prefix}}--card--wrapper__type__promo__size__{{ size }}">
6
- <div class="{{prefix}}--card {{prefix}}--card__type__promo {{prefix}}--card__size__{{ size }} {{prefix}}--card__action {{prefix}}--card__theme__{{theme}} {% if cornercut %}{{prefix}}--card__cornercut{% endif %}">
7
- <a class="{{prefix}}--card--link" href="{{link}}" title="{{title}}">
8
- <span class="{{prefix}}--card--link--text">{{title}}</span>
9
- </a>
10
- <div class="{{prefix}}--card--wrap">
11
- <div class="{{prefix}}--card--content">
12
- {% if eyebrow %}
13
- <p class="{{prefix}}--card--eyebrow">{{eyebrow}}</p>
14
- {% endif %}
15
- {% if title %}
16
- <h3 class="{{prefix}}--card--title">{{title}}</h3>
17
- {% endif %}
18
- {% if intro %}
19
- <p class="{{prefix}}--card--intro">{{intro}}</p>
20
- {% endif %}
21
- {% if cta %}
22
- <div class="{{prefix}}--card--cta">
23
- {% include "@components/button/button.twig" with {
6
+ <div class="{{prefix}}--card {{prefix}}--card__type__promo {{prefix}}--card__size__{{ size }} {{prefix}}--card__action {{prefix}}--card__theme__{{theme}} {% if cornercut %}{{prefix}}--card__cornercut{% endif %}">
7
+ <a class="{{prefix}}--card--link" href="{{link}}" title="{{title}}">
8
+ <span class="{{prefix}}--card--link--text">{{title}}</span>
9
+ </a>
10
+ <div class="{{prefix}}--card--wrap">
11
+ <div class="{{prefix}}--card--content">
12
+ {% if eyebrow %}
13
+ <p class="{{prefix}}--card--eyebrow">{{eyebrow}}</p>
14
+ {% endif %}
15
+ {% if title %}
16
+ <{{titleLevel|default('p')}} class="{{ prefix }}--card--title">{{ title }}</{{titleLevel|default('p')}}>
17
+ {% endif %}
18
+ {% if intro %}
19
+ <p class="{{prefix}}--card--intro">{{intro}}</p>
20
+ {% endif %}
21
+ {% if cta %}
22
+ <div class="{{prefix}}--card--cta">
23
+ {% include "@components/button/button.twig" with {
24
24
  size: "medium",
25
25
  url: cta.url,
26
26
  label: cta.label,
27
27
  type: "primary",
28
28
  prefix: prefix,
29
29
  } only %}
30
- </div>
31
- {% endif %}
32
- </div>
33
- </div>
34
- </div>
30
+ </div>
31
+ {% endif %}
32
+ </div>
33
+ </div>
34
+ </div>
35
35
  </div>
@@ -69,3 +69,15 @@ promocard:
69
69
  options:
70
70
  dark: Dark
71
71
  light: Light
72
+ titleLevel:
73
+ type: select
74
+ label: Title Element
75
+ description: HTML element used for the title
76
+ required: false
77
+ options:
78
+ p: p
79
+ h1: h1
80
+ h2: h2
81
+ h3: h3
82
+ h4: h4
83
+ h5: h5
@@ -5,7 +5,7 @@
5
5
  <div class="{{prefix}}--card--wrap">
6
6
  <div class="{{prefix}}--card--content">
7
7
  {% if title %}
8
- <h3 class="{{prefix}}--card--title">{{title}}</h3>
8
+ <{{titleLevel|default('p')}} class="{{ prefix }}--card--title">{{ title }}</{{titleLevel|default('p')}}>
9
9
  {% endif %}
10
10
  {% if intro %}
11
11
  <p class="{{prefix}}--card--intro">{{intro}}</p>
@@ -42,3 +42,15 @@ statcard:
42
42
  yellow: yellow
43
43
  blue: blue
44
44
  preview: "blue"
45
+ titleLevel:
46
+ type: select
47
+ label: Title Element
48
+ description: HTML element used for the title
49
+ required: false
50
+ options:
51
+ p: p
52
+ h1: h1
53
+ h2: h2
54
+ h3: h3
55
+ h4: h4
56
+ h5: h5
@@ -3,23 +3,23 @@
3
3
  #}
4
4
 
5
5
  <div class="{{prefix}}--card--wrapper">
6
- <div class="{{prefix}}--card {{prefix}}--card__type__text {{prefix}}--card__size__{{ size }} {{prefix}}--card__action {{prefix}}--card__theme__{{theme}}">
7
- <a class="{{prefix}}--card--link" href="{{link}}" title="{{title}}">
8
- <span class="{{prefix}}--card--link--text">{{title}}</span>
9
- </a>
10
- <div class="{{prefix}}--card--wrap">
11
- <div class="{{prefix}}--card--content">
12
- {% if eyebrow %}
13
- <p class="{{prefix}}--card--eyebrow">{{eyebrow}}</p>
14
- {% endif %}
15
- {% if title %}
16
- <h3 class="{{prefix}}--card--title">{{title}}</h3>
17
- {% endif %}
18
- {% if date %}
19
- <time class="{{prefix}}--card--date" datetime="{{date.unix}}">{{date.human}}</time>
20
- {% endif %}
21
- {% if profile %}
22
- {% include "@components/profile/profile.twig" with {
6
+ <div class="{{prefix}}--card {{prefix}}--card__type__text {{prefix}}--card__size__{{ size }} {{prefix}}--card__action {{prefix}}--card__theme__{{theme}}">
7
+ <a class="{{prefix}}--card--link" href="{{link}}" title="{{title}}">
8
+ <span class="{{prefix}}--card--link--text">{{title}}</span>
9
+ </a>
10
+ <div class="{{prefix}}--card--wrap">
11
+ <div class="{{prefix}}--card--content">
12
+ {% if eyebrow %}
13
+ <p class="{{prefix}}--card--eyebrow">{{eyebrow}}</p>
14
+ {% endif %}
15
+ {% if title %}
16
+ <{{titleLevel|default('p')}} class="{{ prefix }}--card--title">{{ title }}</{{titleLevel|default('p')}}>
17
+ {% endif %}
18
+ {% if date %}
19
+ <time class="{{prefix}}--card--date" datetime="{{date.unix}}">{{date.human}}</time>
20
+ {% endif %}
21
+ {% if profile %}
22
+ {% include "@components/profile/profile.twig" with {
23
23
  avatar: profile.avatar,
24
24
  description: profile.description,
25
25
  link: profile.link,
@@ -28,8 +28,8 @@
28
28
  prefix: prefix,
29
29
  theme: theme,
30
30
  } only %}
31
- {% endif %}
32
- </div>
33
- </div>
34
- </div>
31
+ {% endif %}
32
+ </div>
33
+ </div>
34
+ </div>
35
35
  </div>
@@ -55,3 +55,15 @@ textcard:
55
55
  options:
56
56
  dark: Dark
57
57
  light: Light
58
+ titleLevel:
59
+ type: select
60
+ label: Title Element
61
+ description: HTML element used for the title
62
+ required: false
63
+ options:
64
+ p: p
65
+ h1: h1
66
+ h2: h2
67
+ h3: h3
68
+ h4: h4
69
+ h5: h5
@@ -2,14 +2,14 @@
2
2
  CARDGROUP COMPONENT
3
3
  #}
4
4
  {% if not cardcount%}
5
- {% set cardcount = "three" %}
5
+ {% set cardcount = "three" %}
6
6
  {% endif %}
7
7
 
8
8
  <div class="{{prefix}}--cardgroup {{prefix}}--cardgroup__count__{{cardcount}} {% if collapsed %} {{prefix}}--cardgroup__collapsed {% endif %}">
9
- <div class="{{prefix}}--cardgroup--inner">
10
- {% for card in group %}
11
- <div class="{{prefix}}--cardgroup--card">
12
- {% include "@components/card/card.twig" with {
9
+ <div class="{{prefix}}--cardgroup--inner">
10
+ {% for card in group %}
11
+ <div class="{{prefix}}--cardgroup--card">
12
+ {% include "@components/card/card.twig" with {
13
13
  size: size,
14
14
  theme: theme,
15
15
  type: type,
@@ -24,23 +24,21 @@
24
24
  linklist: card.linklist,
25
25
  list: card.list,
26
26
  title: card.title,
27
+ titleLevel: titleLevel,
27
28
  alignment: alignment,
28
29
  color: card.color,
29
30
  cornercut: card.cornercut,
30
31
  source: card.source,
31
32
  prefix: prefix
32
33
  } only %}
33
- </div>
34
- {% endfor %}
35
- </div>
36
- {% if cta %}
37
- <div class="{{prefix}}--cardgroup--button-wrap">
38
- <a
39
- class="{{prefix}}--button {{prefix}}--button--medium {{prefix}}--button--secondary"
40
- href="{{cta.url}}"
41
- >
42
- <span class="button__label">{{ cta.label }}</span>
43
- </a>
44
- </div>
45
- {% endif %}
34
+ </div>
35
+ {% endfor %}
36
+ </div>
37
+ {% if cta %}
38
+ <div class="{{prefix}}--cardgroup--button-wrap">
39
+ <a class="{{prefix}}--button {{prefix}}--button--medium {{prefix}}--button--secondary" href="{{cta.url}}">
40
+ <span class="button__label">{{ cta.label }}</span>
41
+ </a>
42
+ </div>
43
+ {% endif %}
46
44
  </div>
@@ -53,6 +53,18 @@ cardgroup:
53
53
  options:
54
54
  dark: Dark
55
55
  light: Light
56
+ titleLevel:
57
+ type: select
58
+ label: TitleLevel
59
+ description: Sets the heading level of the title for all of the cards. This is not applied to Data Cards which do not have titles
60
+ preview: p
61
+ options:
62
+ p: p
63
+ h1: h1
64
+ h2: h2
65
+ h3: h3
66
+ h4: h4
67
+ h5: h5
56
68
  type:
57
69
  type: select
58
70
  label: Type
@@ -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