@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.
- package/dist/components/{accordion-item → accordion}/accordion-item.twig +2 -2
- package/dist/components/card_detail/card_detail.twig +27 -27
- package/dist/components/card_detail/card_detail.wingsuit.yml +12 -0
- package/dist/components/card_factlist/card_factlist.twig +11 -11
- package/dist/components/card_factlist/card_factlist.wingsuit.yml +12 -0
- package/dist/components/card_feature/card_feature.twig +24 -24
- package/dist/components/card_feature/card_feature.wingsuit.yml +12 -0
- package/dist/components/card_multilink/card_multilink.twig +1 -1
- package/dist/components/card_multilink/card_multilink.wingsuit.yml +12 -0
- package/dist/components/card_promo/card_promo.twig +23 -23
- package/dist/components/card_promo/card_promo.wingsuit.yml +12 -0
- package/dist/components/card_stat/card_stat.twig +1 -1
- package/dist/components/card_stat/card_stat.wingsuit.yml +12 -0
- package/dist/components/card_text/card_text.twig +21 -21
- package/dist/components/card_text/card_text.wingsuit.yml +12 -0
- package/dist/components/cardgroup/cardgroup.twig +16 -18
- package/dist/components/cardgroup/cardgroup.wingsuit.yml +12 -0
- package/dist/components/checkbox/checkbox.twig +1 -1
- package/dist/components/checkbox/checkbox.wingsuit.yml +1 -0
- package/dist/components/datepicker/datepicker.twig +2 -2
- package/dist/components/dropdown/dropdown.twig +1 -1
- package/dist/components/dropdown/dropdown.wingsuit.yml +2 -1
- package/dist/components/fileupload/fileupload.twig +1 -1
- package/dist/components/fileupload/fileupload.wingsuit.yml +1 -0
- package/dist/components/{fieldset → form}/fieldset.twig +1 -1
- package/dist/components/form/form.twig +1 -1
- package/dist/components/{formcontrol → form}/formcontrol.twig +1 -1
- package/dist/components/{input → form}/input.twig +1 -1
- package/dist/components/list/list-item.twig +6 -0
- package/dist/components/list/list.twig +2 -2
- package/dist/components/list/list.wingsuit.yml +11 -11
- package/dist/components/list-item/list-item.wingsuit.yml +1 -1
- package/dist/components/navigation/navigation.behavior.js +1 -1
- package/dist/components/navigation/navigation.css +1 -1
- package/dist/components/navigation/navigation.twig +27 -27
- package/dist/components/navigation/navigation.wingsuit.yml +1 -0
- package/dist/components/numberpicker/numberpicker.twig +2 -2
- package/dist/components/numberpicker/numberpicker.wingsuit.yml +1 -0
- package/dist/components/promocard/promocard.css +1 -1
- package/dist/components/radio/radio.twig +1 -1
- package/dist/components/radio/radio.wingsuit.yml +1 -0
- package/dist/components/search/search.twig +3 -3
- package/dist/components/search/search.wingsuit.yml +1 -0
- package/dist/components/tag/tag.wingsuit.yml +4 -3
- package/dist/components/{tag → tags}/tag.twig +4 -4
- package/dist/components/tags/tags.twig +1 -1
- package/dist/components/tags/tags.wingsuit.yml +3 -3
- package/dist/components/textarea/textarea.twig +1 -1
- package/dist/components/textarea/textarea.wingsuit.yml +1 -0
- package/dist/components/textinput/textinput.twig +1 -1
- package/dist/components/textinput/textinput.wingsuit.yml +1 -0
- package/dist/components/toggle/toggle.twig +1 -1
- package/dist/components/toggle/toggle.wingsuit.yml +1 -0
- package/package.json +3 -3
- package/src/patterns/components/card_detail/card_detail.twig +27 -27
- package/src/patterns/components/card_detail/card_detail.wingsuit.yml +12 -0
- package/src/patterns/components/card_factlist/card_factlist.twig +11 -11
- package/src/patterns/components/card_factlist/card_factlist.wingsuit.yml +12 -0
- package/src/patterns/components/card_feature/card_feature.twig +24 -24
- package/src/patterns/components/card_feature/card_feature.wingsuit.yml +12 -0
- package/src/patterns/components/card_multilink/card_multilink.twig +1 -1
- package/src/patterns/components/card_multilink/card_multilink.wingsuit.yml +12 -0
- package/src/patterns/components/card_promo/card_promo.twig +23 -23
- package/src/patterns/components/card_promo/card_promo.wingsuit.yml +12 -0
- package/src/patterns/components/card_stat/card_stat.twig +1 -1
- package/src/patterns/components/card_stat/card_stat.wingsuit.yml +12 -0
- package/src/patterns/components/card_text/card_text.twig +21 -21
- package/src/patterns/components/card_text/card_text.wingsuit.yml +12 -0
- package/src/patterns/components/cardgroup/cardgroup.twig +16 -18
- package/src/patterns/components/cardgroup/cardgroup.wingsuit.yml +12 -0
- package/src/patterns/components/checkbox/checkbox.wingsuit.yml +1 -0
- package/src/patterns/components/dropdown/dropdown.wingsuit.yml +2 -1
- package/src/patterns/components/fileupload/fileupload.wingsuit.yml +1 -0
- package/src/patterns/components/list/list-item.twig +1 -1
- package/src/patterns/components/list/list-item.wingsuit.yml +1 -1
- package/src/patterns/components/list/list.twig +2 -2
- package/src/patterns/components/list/list.wingsuit.yml +11 -11
- package/src/patterns/components/navigation/navigation.js +27 -3
- package/src/patterns/components/navigation/navigation.twig +27 -27
- package/src/patterns/components/navigation/navigation.wingsuit.yml +1 -0
- package/src/patterns/components/numberpicker/numberpicker.wingsuit.yml +1 -0
- package/src/patterns/components/radio/radio.wingsuit.yml +1 -0
- package/src/patterns/components/search/search.wingsuit.yml +1 -0
- package/src/patterns/components/tags/tag.twig +4 -4
- package/src/patterns/components/tags/tag.wingsuit.yml +4 -3
- package/src/patterns/components/tags/tags.twig +1 -1
- package/src/patterns/components/tags/tags.wingsuit.yml +3 -3
- package/src/patterns/components/textarea/textarea.wingsuit.yml +1 -0
- package/src/patterns/components/textinput/textinput.wingsuit.yml +1 -0
- package/src/patterns/components/toggle/toggle.wingsuit.yml +1 -0
- package/dist/components/list-item/list-item.twig +0 -6
- /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 ?
|
|
9
|
-
{% set scroll_class = 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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
{% endif %}
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
21
21
|
</div>
|
|
@@ -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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
{% endif %}
|
|
37
|
+
</div>
|
|
38
|
+
</div>
|
|
39
39
|
</div>
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
<p class="ilo--card--eyebrow">{{eyebrow}}</p>
|
|
20
20
|
{% endif %}
|
|
21
21
|
{% if title %}
|
|
22
|
-
<
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
30
|
+
</div>
|
|
31
|
+
{% endif %}
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
35
|
</div>
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<div class="ilo--card--wrap">
|
|
6
6
|
<div class="ilo--card--content">
|
|
7
7
|
{% if title %}
|
|
8
|
-
<
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
{% endif %}
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
35
|
</div>
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
CARDGROUP COMPONENT
|
|
3
3
|
#}
|
|
4
4
|
{% if not cardcount%}
|
|
5
|
-
|
|
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
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
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 =
|
|
6
|
+
{% set baseClass = 'ilo' ~ '--checkbox' %}
|
|
7
7
|
{% set errorClass = baseClass ~ '__error' %}
|
|
8
8
|
{% set CheckboxClasses = [baseClass] %}
|
|
9
9
|
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
{# Default values and input preparation #}
|
|
7
7
|
{% set disabled = disabled|default(false) %}
|
|
8
|
-
{% set inputClass =
|
|
9
|
-
{% set baseClass =
|
|
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 =
|
|
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:
|
|
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
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{# fieldset.twig #}
|
|
2
2
|
|
|
3
|
-
{% set baseClass =
|
|
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,7 +1,7 @@
|
|
|
1
1
|
{# text-input.twig #}
|
|
2
2
|
{% extends "@components/form/formcontrol.twig" %}
|
|
3
3
|
|
|
4
|
-
{% set baseClass =
|
|
4
|
+
{% set baseClass = 'ilo' ~ "--text-input" %}
|
|
5
5
|
{% set inputClass = [baseClass] %}
|
|
6
6
|
{% if error %}
|
|
7
7
|
{% set inputClass = inputClass|merge([baseClass ~ "__error"]) %}
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
prefix: prefix,
|
|
17
17
|
label: item.label,
|
|
18
18
|
content: item.content,
|
|
19
|
-
|
|
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
|
-
|
|
30
|
+
elementId: item.id,
|
|
31
31
|
} only %}
|
|
32
32
|
{% endfor %}
|
|
33
33
|
</ul>
|