@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
@@ -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,35 +3,35 @@
3
3
  #}
4
4
 
5
5
  <div class="ilo--card ilo--card__type__detail ilo--card__action ilo--card__size__{{size}} {% if isvideo %} ilo--card__isvideo {% endif %}">
6
- <a class="ilo--card--link" href="{{link}}" title="{{title}}">
7
- <span class="ilo--card--link--text">{{title}}</span>
8
- </a>
9
- <div class="ilo--card--wrap">
10
- {% if image %}
11
- <div class="ilo--card--image--wrapper">
12
- {% include "@components/picture/picture.twig" with {
6
+ <a class="ilo--card--link" href="{{link}}" title="{{title}}">
7
+ <span class="ilo--card--link--text">{{title}}</span>
8
+ </a>
9
+ <div class="ilo--card--wrap">
10
+ {% if image %}
11
+ <div class="ilo--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="ilo--card--content">
20
- {% if eyebrow %}
21
- <p class="ilo--card--eyebrow">{{eyebrow}}</p>
22
- {% endif %}
23
- {% if title %}
24
- <h3 class="ilo--card--title">{{title}}</h3>
25
- {% endif %}
26
- {% if intro %}
27
- <p class="ilo--card--intro">{{intro}}</p>
28
- {% endif %}
29
- {% if date %}
30
- <time class="ilo--card--date" datetime="{{date.unix}}">{{date.human}}</time>
31
- {% endif %}
32
- {% if dateExtra %}
33
- <p class="ilo--card--date-extra">{{dateExtra}}</p>
34
- {% endif %}
35
- </div>
36
- </div>
17
+ </div>
18
+ {% endif %}
19
+ <div class="ilo--card--content">
20
+ {% if eyebrow %}
21
+ <p class="ilo--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="ilo--card--intro">{{intro}}</p>
28
+ {% endif %}
29
+ {% if date %}
30
+ <time class="ilo--card--date" datetime="{{date.unix}}">{{date.human}}</time>
31
+ {% endif %}
32
+ {% if dateExtra %}
33
+ <p class="ilo--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="ilo--card ilo--card__type__factlist ilo--card__size__{{size}} ilo--card__theme__{{theme}}">
5
- <div class="ilo--card--wrap">
6
- <div class="ilo--card--content">
7
- {% if title %}
8
- <h3 class="ilo--card--title">{{title}}</h3>
9
- {% endif %}
10
- {% if list %}
11
- {% include "@components/list/list.twig" with {
4
+ <div class="ilo--card ilo--card__type__factlist ilo--card__size__{{size}} ilo--card__theme__{{theme}}">
5
+ <div class="ilo--card--wrap">
6
+ <div class="ilo--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="ilo--card ilo--card__type__feature ilo--card__action ilo--card__theme__{{theme}} ilo--card__size__{{ size }} {% if isvideo %} ilo--card__isvideo {% endif %} {% if cta %} ilo--card__linklist {% endif %}">
6
- <a class="ilo--card--link" href="{{link}}" title="{{title}}">
7
- <span class="ilo--card--link--text">{{title}}</span>
8
- </a>
9
- <div class="ilo--card--wrap">
10
- {% if image %}
11
- <div class="ilo--card--image--wrapper">
12
- {% include "@components/picture/picture.twig" with {
6
+ <a class="ilo--card--link" href="{{link}}" title="{{title}}">
7
+ <span class="ilo--card--link--text">{{title}}</span>
8
+ </a>
9
+ <div class="ilo--card--wrap">
10
+ {% if image %}
11
+ <div class="ilo--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="ilo--card--content">
20
- {% if eyebrow %}
21
- <p class="ilo--card--eyebrow">{{eyebrow}}</p>
22
- {% endif %}
23
- {% if title %}
24
- <h3 class="ilo--card--title">{{title}}</h3>
25
- {% endif %}
26
- {% if date %}
27
- <time class="ilo--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="ilo--card--content">
20
+ {% if eyebrow %}
21
+ <p class="ilo--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="ilo--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="ilo--card--eyebrow">{{eyebrow}}</p>
20
20
  {% endif %}
21
21
  {% if title %}
22
- <h3 class="ilo--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="ilo--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="ilo--card--wrapper ilo--card--wrapper__type__promo ilo--card--wrapper__type__promo__size__{{ size }}">
6
- <div class="ilo--card ilo--card__type__promo ilo--card__size__{{ size }} ilo--card__action ilo--card__theme__{{theme}} {% if cornercut %}ilo--card__cornercut{% endif %}">
7
- <a class="ilo--card--link" href="{{link}}" title="{{title}}">
8
- <span class="ilo--card--link--text">{{title}}</span>
9
- </a>
10
- <div class="ilo--card--wrap">
11
- <div class="ilo--card--content">
12
- {% if eyebrow %}
13
- <p class="ilo--card--eyebrow">{{eyebrow}}</p>
14
- {% endif %}
15
- {% if title %}
16
- <h3 class="ilo--card--title">{{title}}</h3>
17
- {% endif %}
18
- {% if intro %}
19
- <p class="ilo--card--intro">{{intro}}</p>
20
- {% endif %}
21
- {% if cta %}
22
- <div class="ilo--card--cta">
23
- {% include "@components/button/button.twig" with {
6
+ <div class="ilo--card ilo--card__type__promo ilo--card__size__{{ size }} ilo--card__action ilo--card__theme__{{theme}} {% if cornercut %}ilo--card__cornercut{% endif %}">
7
+ <a class="ilo--card--link" href="{{link}}" title="{{title}}">
8
+ <span class="ilo--card--link--text">{{title}}</span>
9
+ </a>
10
+ <div class="ilo--card--wrap">
11
+ <div class="ilo--card--content">
12
+ {% if eyebrow %}
13
+ <p class="ilo--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="ilo--card--intro">{{intro}}</p>
20
+ {% endif %}
21
+ {% if cta %}
22
+ <div class="ilo--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="ilo--card--wrap">
6
6
  <div class="ilo--card--content">
7
7
  {% if title %}
8
- <h3 class="ilo--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="ilo--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="ilo--card--wrapper">
6
- <div class="ilo--card ilo--card__type__text ilo--card__size__{{ size }} ilo--card__action ilo--card__theme__{{theme}}">
7
- <a class="ilo--card--link" href="{{link}}" title="{{title}}">
8
- <span class="ilo--card--link--text">{{title}}</span>
9
- </a>
10
- <div class="ilo--card--wrap">
11
- <div class="ilo--card--content">
12
- {% if eyebrow %}
13
- <p class="ilo--card--eyebrow">{{eyebrow}}</p>
14
- {% endif %}
15
- {% if title %}
16
- <h3 class="ilo--card--title">{{title}}</h3>
17
- {% endif %}
18
- {% if date %}
19
- <time class="ilo--card--date" datetime="{{date.unix}}">{{date.human}}</time>
20
- {% endif %}
21
- {% if profile %}
22
- {% include "@components/profile/profile.twig" with {
6
+ <div class="ilo--card ilo--card__type__text ilo--card__size__{{ size }} ilo--card__action ilo--card__theme__{{theme}}">
7
+ <a class="ilo--card--link" href="{{link}}" title="{{title}}">
8
+ <span class="ilo--card--link--text">{{title}}</span>
9
+ </a>
10
+ <div class="ilo--card--wrap">
11
+ <div class="ilo--card--content">
12
+ {% if eyebrow %}
13
+ <p class="ilo--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="ilo--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="ilo--cardgroup ilo--cardgroup__count__{{cardcount}} {% if collapsed %} ilo--cardgroup__collapsed {% endif %}">
9
- <div class="ilo--cardgroup--inner">
10
- {% for card in group %}
11
- <div class="ilo--cardgroup--card">
12
- {% include "@components/card/card.twig" with {
9
+ <div class="ilo--cardgroup--inner">
10
+ {% for card in group %}
11
+ <div class="ilo--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="ilo--cardgroup--button-wrap">
38
- <a
39
- class="ilo--button ilo--button--medium ilo--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="ilo--cardgroup--button-wrap">
39
+ <a class="ilo--button ilo--button--medium ilo--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
@@ -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>