@ilo-org/twig 1.0.4 → 1.1.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/accordion.css +1 -1
- package/dist/components/accordion/accordion.twig +1 -1
- package/dist/components/accordion/accordion.wingsuit.yml +3 -6
- package/dist/components/button/button.twig +2 -2
- package/dist/components/button/button.wingsuit.yml +6 -15
- package/dist/components/callout/callout.twig +2 -2
- package/dist/components/callout/callout.wingsuit.yml +4 -10
- package/dist/components/card/card.wingsuit.yml +4 -7
- package/dist/components/card_detail/card_detail.twig +1 -1
- package/dist/components/card_detail/card_detail.wingsuit.yml +2 -5
- package/dist/components/card_feature/card_feature.twig +1 -1
- package/dist/components/card_feature/card_feature.wingsuit.yml +2 -5
- package/dist/components/card_multilink/card_multilink.twig +1 -1
- package/dist/components/card_multilink/card_multilink.wingsuit.yml +2 -5
- package/dist/components/card_promo/card_promo.twig +1 -1
- package/dist/components/card_promo/card_promo.wingsuit.yml +2 -5
- package/dist/components/cardgroup/cardgroup.twig +1 -1
- package/dist/components/cardgroup/cardgroup.wingsuit.yml +2 -5
- package/dist/components/contextmenu/contextmenu.twig +1 -1
- package/dist/components/contextmenu/contextmenu.wingsuit.yml +1 -1
- package/dist/components/fileupload/fileupload.twig +1 -1
- package/dist/components/fileupload/fileupload.wingsuit.yml +1 -4
- package/dist/components/hero/hero.twig +1 -1
- package/dist/components/hero/hero.wingsuit.yml +2 -2
- package/dist/components/herocard/herocard.twig +1 -1
- package/dist/components/herocard/herocard.wingsuit.yml +3 -6
- package/dist/components/image/image.wingsuit.yml +2 -5
- package/dist/components/linklist/linklist.twig +1 -1
- package/dist/components/linklist/linklist.wingsuit.yml +3 -3
- package/dist/components/localnav/localnav.wingsuit.yml +1 -1
- package/dist/components/navigation/navigation.wingsuit.yml +1 -1
- package/dist/components/readmore/readmore.twig +1 -1
- package/dist/components/readmore/readmore.wingsuit.yml +2 -5
- package/dist/components/table/table.twig +1 -1
- package/dist/components/table/table.wingsuit.yml +4 -10
- package/dist/components/tag/tag.wingsuit.yml +2 -5
- package/dist/components/tags/tags.wingsuit.yml +2 -5
- package/dist/components/tooltip/tooltip.twig +2 -2
- package/dist/components/tooltip/tooltip.wingsuit.yml +2 -5
- package/dist/global/styles.css +9 -2
- package/package.json +7 -5
- package/src/patterns/components/accordion/accordion.twig +1 -1
- package/src/patterns/components/accordion/accordion.wingsuit.yml +3 -6
- package/src/patterns/components/button/button.twig +2 -2
- package/src/patterns/components/button/button.wingsuit.yml +6 -15
- package/src/patterns/components/callout/callout.twig +2 -2
- package/src/patterns/components/callout/callout.wingsuit.yml +4 -10
- package/src/patterns/components/card/card.wingsuit.yml +4 -7
- package/src/patterns/components/card_detail/card_detail.twig +1 -1
- package/src/patterns/components/card_detail/card_detail.wingsuit.yml +2 -5
- package/src/patterns/components/card_feature/card_feature.twig +1 -1
- package/src/patterns/components/card_feature/card_feature.wingsuit.yml +2 -5
- package/src/patterns/components/card_multilink/card_multilink.twig +1 -1
- package/src/patterns/components/card_multilink/card_multilink.wingsuit.yml +2 -5
- package/src/patterns/components/card_promo/card_promo.twig +1 -1
- package/src/patterns/components/card_promo/card_promo.wingsuit.yml +2 -5
- package/src/patterns/components/cardgroup/cardgroup.twig +1 -1
- package/src/patterns/components/cardgroup/cardgroup.wingsuit.yml +2 -5
- package/src/patterns/components/contextmenu/contextmenu.twig +1 -1
- package/src/patterns/components/contextmenu/contextmenu.wingsuit.yml +1 -1
- package/src/patterns/components/fileupload/fileupload.twig +1 -1
- package/src/patterns/components/fileupload/fileupload.wingsuit.yml +1 -4
- package/src/patterns/components/hero/hero.twig +1 -1
- package/src/patterns/components/hero/hero.wingsuit.yml +2 -2
- package/src/patterns/components/herocard/herocard.twig +1 -1
- package/src/patterns/components/herocard/herocard.wingsuit.yml +3 -6
- package/src/patterns/components/image/image.wingsuit.yml +2 -5
- package/src/patterns/components/linklist/linklist.twig +1 -1
- package/src/patterns/components/linklist/linklist.wingsuit.yml +3 -3
- package/src/patterns/components/localnav/localnav.wingsuit.yml +1 -1
- package/src/patterns/components/navigation/navigation.wingsuit.yml +1 -1
- package/src/patterns/components/readmore/readmore.twig +1 -1
- package/src/patterns/components/readmore/readmore.wingsuit.yml +2 -5
- package/src/patterns/components/table/table.twig +1 -1
- package/src/patterns/components/table/table.wingsuit.yml +4 -10
- package/src/patterns/components/tags/tag.wingsuit.yml +2 -5
- package/src/patterns/components/tags/tags.wingsuit.yml +2 -5
- package/src/patterns/components/tooltip/tooltip.twig +2 -2
- package/src/patterns/components/tooltip/tooltip.wingsuit.yml +2 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.ilo--accordion--button{display:flex;flex-direction:row;justify-content:space-between;width:100%;margin:0;padding-block:.857449089rem;padding-inline-end:2.3579849946rem;background-color:#fff;background-position:calc(100% - .3215434084rem) 50%;background-repeat:no-repeat;background-size:1.2861736334rem 1.2861736334rem;border:none;border-top:2px solid #edf0f2;fill:#230050;font-family:Overpass,Noto Sans,Noto Sans CJK JP,Yu Gothic,Hiragino Sans,TakaoPGothic,PingFang SC,Microsoft YaHei,微软雅黑,sans-serif;color:#230050;font-weight:500;transition:all .5s ease-in-out;font-size:16px;letter-spacing:-.02em;line-height:21.6px;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23230050' d='M18 11h-5V6h-2v5H6v2h5v5h2v-5h5v-2z'/%3E%3C/svg%3E")}.ilo--accordion--button__large{font-size:18.66px;letter-spacing:-.035em;line-height:24.26px;padding-block:1.0718113612rem;padding-inline-end:2.3579849946rem}.ilo--accordion--button:focus,.ilo--accordion--button:hover{background-color:#ebf5fd;border-top-color:#1e2dbe;color:#1e2dbe;fill:#1e2dbe;cursor:pointer}.ilo--accordion--button:focus[aria-expanded=true],.ilo--accordion--button:hover[aria-expanded=true]{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231E2DBE' d='M18 11H6v2h12v-2z'/%3E%3C/svg%3E")}.ilo--accordion--button:focus[aria-expanded=false],.ilo--accordion--button:hover[aria-expanded=false]{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231E2DBE' d='M18 11h-5V6h-2v5H6v2h5v5h2v-5h5v-2z'/%3E%3C/svg%3E")}@media screen and (min-width:610px){.ilo--accordion--button{font-size:16px;letter-spacing:-.02em;line-height:21.6px}.ilo--accordion--button__large{font-size:18.66px;letter-spacing:-.035em;line-height:24.26px;padding:1.0718113612rem 0;padding-inline-end:2.3579849946rem}}.ilo--accordion--button[aria-expanded=true]{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23230050' d='M18 11H6v2h12v-2z'/%3E%3C/svg%3E")}.ilo--accordion--button[aria-expanded=false]{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23230050' d='M18 11h-5V6h-2v5H6v2h5v5h2v-5h5v-2z'/%3E%3C/svg%3E")}[dir=rtl] .ilo--accordion--button{background-position:calc(0% + .3215434084rem) 50%}.ilo--accordion--panel{max-height:0;transition:all .5s cubic-bezier(0,1,0,1);overflow:hidden}.ilo--accordion--panel .ilo--accordion--innerpanel{padding-bottom:1.9292604502rem;padding-top:.4287245445rem}.ilo--accordion--panel__open{max-height:100vh;transition:all .5s ease-in-out}.ilo--accordion--panel__open.ilo--accordion--panel__scroll{max-height:300px;overflow-y:auto
|
|
1
|
+
@charset "UTF-8";.ilo--accordion--button{display:flex;flex-direction:row;justify-content:space-between;width:100%;margin:0;padding-block:.857449089rem;padding-inline-end:2.3579849946rem;background-color:#fff;background-position:calc(100% - .3215434084rem) 50%;background-repeat:no-repeat;background-size:1.2861736334rem 1.2861736334rem;border:none;border-top:2px solid #edf0f2;fill:#230050;font-family:Overpass,Noto Sans,Noto Sans CJK JP,Yu Gothic,Hiragino Sans,TakaoPGothic,PingFang SC,Microsoft YaHei,微软雅黑,sans-serif;color:#230050;font-weight:500;transition:all .5s ease-in-out;font-size:16px;letter-spacing:-.02em;line-height:21.6px;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23230050' d='M18 11h-5V6h-2v5H6v2h5v5h2v-5h5v-2z'/%3E%3C/svg%3E")}.ilo--accordion--button__large{font-size:18.66px;letter-spacing:-.035em;line-height:24.26px;padding-block:1.0718113612rem;padding-inline-end:2.3579849946rem}.ilo--accordion--button:focus,.ilo--accordion--button:hover{background-color:#ebf5fd;border-top-color:#1e2dbe;color:#1e2dbe;fill:#1e2dbe;cursor:pointer}.ilo--accordion--button:focus[aria-expanded=true],.ilo--accordion--button:hover[aria-expanded=true]{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231E2DBE' d='M18 11H6v2h12v-2z'/%3E%3C/svg%3E")}.ilo--accordion--button:focus[aria-expanded=false],.ilo--accordion--button:hover[aria-expanded=false]{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231E2DBE' d='M18 11h-5V6h-2v5H6v2h5v5h2v-5h5v-2z'/%3E%3C/svg%3E")}@media screen and (min-width:610px){.ilo--accordion--button{font-size:16px;letter-spacing:-.02em;line-height:21.6px}.ilo--accordion--button__large{font-size:18.66px;letter-spacing:-.035em;line-height:24.26px;padding:1.0718113612rem 0;padding-inline-end:2.3579849946rem}}.ilo--accordion--button[aria-expanded=true]{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23230050' d='M18 11H6v2h12v-2z'/%3E%3C/svg%3E")}.ilo--accordion--button[aria-expanded=false]{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23230050' d='M18 11h-5V6h-2v5H6v2h5v5h2v-5h5v-2z'/%3E%3C/svg%3E")}[dir=rtl] .ilo--accordion--button{background-position:calc(0% + .3215434084rem) 50%}.ilo--accordion--panel{max-height:0;transition:all .5s cubic-bezier(0,1,0,1);overflow:hidden}.ilo--accordion--panel .ilo--accordion--innerpanel{padding-bottom:1.9292604502rem;padding-top:.4287245445rem;padding-inline-end:1.7148981779rem}.ilo--accordion--panel__open{max-height:100vh;transition:all .5s ease-in-out}.ilo--accordion--panel__open.ilo--accordion--panel__scroll{max-height:300px;overflow-y:auto}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{# accordion.twig #}
|
|
2
2
|
|
|
3
|
-
<ul class="ilo--accordion" data-loadcomponent="Accordion"
|
|
3
|
+
<ul class="ilo--accordion" data-loadcomponent="Accordion"{{ allowMultipleExpanded|boolval ? ' data-multipleexpanded' }}>
|
|
4
4
|
{% for item in items %}
|
|
5
5
|
{% include "@components/accordion/accordion-item.twig" with {
|
|
6
6
|
label: item.label,
|
|
@@ -33,13 +33,10 @@ accordion:
|
|
|
33
33
|
large: Large
|
|
34
34
|
preview: small
|
|
35
35
|
allowMultipleExpanded:
|
|
36
|
-
type:
|
|
36
|
+
type: boolean
|
|
37
37
|
label: Allow Multiple Expanded
|
|
38
|
-
description: Allow
|
|
39
|
-
|
|
40
|
-
"true": "true"
|
|
41
|
-
"false": "false"
|
|
42
|
-
preview: "true"
|
|
38
|
+
description: Allow multiple accordion items to be expandable at once.
|
|
39
|
+
preview: true
|
|
43
40
|
required: false
|
|
44
41
|
variants:
|
|
45
42
|
default:
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
BUTTON COMPONENT
|
|
3
3
|
#}
|
|
4
4
|
{% if url %}
|
|
5
|
-
<a class="ilo--button ilo--button--{{size}} ilo--button--{{type}}{% if icon %} icon icon__position--{{iconPosition}}{% endif %}{% if icononly %} icon--only{% endif %}{% if className %} {{className}}{% endif %}" href="{{url}}" {% if target
|
|
5
|
+
<a class="ilo--button ilo--button--{{size}} ilo--button--{{type}}{% if icon %} icon icon__position--{{iconPosition}}{% endif %}{% if icononly|boolval %} icon--only{% endif %}{% if className %} {{className}}{% endif %}" href="{{url}}" {% if target %} target="{{target}}" rel="noopener noreferrer"{% endif %}{{ disabled|boolval ? ' disabled' }}>
|
|
6
6
|
<span class="link__label">{{label}}</span>
|
|
7
7
|
{% block button_icon %}
|
|
8
8
|
{% if icon %}
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
{% endblock %}
|
|
17
17
|
</a>
|
|
18
18
|
{% else %}
|
|
19
|
-
<button class="ilo--button ilo--button--{{size}} ilo--button--{{type}}{% if icon %} icon icon__position--{{iconPosition}}{% endif %}{% if icononly %} icon--only{% endif %}{% if className %} {{className}}{% endif %}" {% if kind %} type="{{kind}}" {% endif %} {% if opensmodal %} aria-haspopup="dialog" {% endif %}
|
|
19
|
+
<button class="ilo--button ilo--button--{{size}} ilo--button--{{type}}{% if icon %} icon icon__position--{{iconPosition}}{% endif %}{% if icononly|boolval %} icon--only{% endif %}{% if className %} {{className}}{% endif %}" {% if kind %} type="{{kind}}" {% endif %} {% if opensmodal|boolval %} aria-haspopup="dialog" {% endif %}{{ disabled|boolval ? ' disabled' }}{% if name %} name="{{name}}" {% endif %}>
|
|
20
20
|
<span class="button__label">{{label}}</span>
|
|
21
21
|
{{ block("button_icon") }}
|
|
22
22
|
</button>
|
|
@@ -66,14 +66,11 @@ button:
|
|
|
66
66
|
icononly: Icon Only
|
|
67
67
|
preview: "primary"
|
|
68
68
|
disabled:
|
|
69
|
-
type:
|
|
69
|
+
type: boolean
|
|
70
70
|
label: Disabled
|
|
71
71
|
description: The disabled state of the button.
|
|
72
72
|
required: false
|
|
73
|
-
|
|
74
|
-
"true": "true"
|
|
75
|
-
"false": "false"
|
|
76
|
-
preview: "false"
|
|
73
|
+
preview: false
|
|
77
74
|
kind:
|
|
78
75
|
type: select
|
|
79
76
|
label: Kind
|
|
@@ -94,21 +91,15 @@ button:
|
|
|
94
91
|
preview: left
|
|
95
92
|
required: false
|
|
96
93
|
icononly:
|
|
97
|
-
type:
|
|
94
|
+
type: boolean
|
|
98
95
|
label: Icon Only
|
|
99
96
|
description: Is this an icon-only button?
|
|
100
|
-
|
|
101
|
-
"true": "true"
|
|
102
|
-
"false": "false"
|
|
103
|
-
preview: "false"
|
|
97
|
+
preview: false
|
|
104
98
|
required: false
|
|
105
99
|
opensmodal:
|
|
106
|
-
type:
|
|
100
|
+
type: boolean
|
|
107
101
|
label: Opens Modal
|
|
108
102
|
description: Does this button trigger open a modal?
|
|
109
|
-
|
|
110
|
-
"true": "true"
|
|
111
|
-
"false": "false"
|
|
112
|
-
preview: "false"
|
|
103
|
+
preview: false
|
|
113
104
|
required: false
|
|
114
105
|
visibility: storybook
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{#
|
|
2
2
|
CALLOUT COMPONENT
|
|
3
3
|
#}
|
|
4
|
-
<div class="ilo--callout ilo--callout--{{alert}} {% if isCollapsible
|
|
4
|
+
<div class="ilo--callout ilo--callout--{{alert}} {% if isCollapsible|boolval and isOpen|boolval %} ilo--callout--open {% endif %} {% if isCollapsible|boolval %} ilo--callout--collapse {% endif %}" data-loadcomponent="Callout">
|
|
5
5
|
<div class="ilo--callout--sidebar">
|
|
6
6
|
<span class="ilo--callout--icon icon icon--{{alert}}"></span>
|
|
7
7
|
</div>
|
|
8
8
|
<div class="ilo--callout--content">
|
|
9
9
|
<div class="ilo--callout--header">
|
|
10
10
|
<h5 class="ilo--callout--title">{{ title }}</h5>
|
|
11
|
-
{% if isCollapsible
|
|
11
|
+
{% if isCollapsible|boolval %}
|
|
12
12
|
<button class="ilo--callout--toggle" type="button" data-open="{{ toggleOpenLabel }}" data-closed="{{ toggleClosedLabel }}">
|
|
13
13
|
<span class="ilo--callout--button-text">
|
|
14
14
|
{% if isOpen %}
|
|
@@ -52,21 +52,15 @@ callout:
|
|
|
52
52
|
warning: Warning
|
|
53
53
|
preview: "info"
|
|
54
54
|
isCollapsible:
|
|
55
|
-
type:
|
|
55
|
+
type: boolean
|
|
56
56
|
label: Is Collapsible?
|
|
57
57
|
description: Whether or not the callout is collapsible
|
|
58
|
-
required:
|
|
59
|
-
options:
|
|
60
|
-
"true": "true"
|
|
61
|
-
"false": "false"
|
|
58
|
+
required: true
|
|
62
59
|
preview: false
|
|
63
60
|
isOpen:
|
|
64
|
-
type:
|
|
61
|
+
type: boolean
|
|
65
62
|
label: Is Open
|
|
66
63
|
description: Whether or not a collapsible callout is open on page load. If callout is not collapsible then the callout will be open always.
|
|
67
64
|
required: false
|
|
68
|
-
|
|
69
|
-
"true": "true"
|
|
70
|
-
"false": "false"
|
|
71
|
-
preview: "true"
|
|
65
|
+
preview: true
|
|
72
66
|
visibility: storybook
|
|
@@ -150,14 +150,11 @@ card:
|
|
|
150
150
|
two: two
|
|
151
151
|
preview: "one"
|
|
152
152
|
cornercut:
|
|
153
|
-
type:
|
|
154
|
-
label:
|
|
155
|
-
description: Allows user to
|
|
153
|
+
type: boolean
|
|
154
|
+
label: Corner cut
|
|
155
|
+
description: Allows user to display a corner cut on the card. This is only used by the `Promo Card`.
|
|
156
156
|
required: false
|
|
157
|
-
preview:
|
|
158
|
-
options:
|
|
159
|
-
"true": "true"
|
|
160
|
-
"false": "false"
|
|
157
|
+
preview: true
|
|
161
158
|
size:
|
|
162
159
|
type: select
|
|
163
160
|
label: Size
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
DETAIL CARD COMPONENT
|
|
3
3
|
#}
|
|
4
4
|
|
|
5
|
-
<div class="ilo--card ilo--card__type__detail ilo--card__action ilo--card__size__{{size}} {% if isvideo %} ilo--card__isvideo {% endif %}">
|
|
5
|
+
<div class="ilo--card ilo--card__type__detail ilo--card__action ilo--card__size__{{size}} {% if isvideo|boolval %} ilo--card__isvideo {% endif %}">
|
|
6
6
|
<a class="ilo--card--link" href="{{link}}" title="{{title}}">
|
|
7
7
|
<span class="ilo--card--link--text">{{title}}</span>
|
|
8
8
|
</a>
|
|
@@ -62,13 +62,10 @@ detailcard:
|
|
|
62
62
|
wide: wide
|
|
63
63
|
fluid: fluid
|
|
64
64
|
isvideo:
|
|
65
|
-
type:
|
|
65
|
+
type: boolean
|
|
66
66
|
label: Is a Video
|
|
67
67
|
description: Whether the card should display a video icon (for Feature card)
|
|
68
|
-
preview:
|
|
69
|
-
options:
|
|
70
|
-
"true": "true"
|
|
71
|
-
"false": "false"
|
|
68
|
+
preview: false
|
|
72
69
|
titleLevel:
|
|
73
70
|
type: select
|
|
74
71
|
label: Title Element
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
FEATURE CARD COMPONENT
|
|
3
3
|
#}
|
|
4
4
|
|
|
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 %}">
|
|
5
|
+
<div class="ilo--card ilo--card__type__feature ilo--card__action ilo--card__theme__{{theme}} ilo--card__size__{{ size }} {% if isvideo|boolval %} ilo--card__isvideo {% endif %} {% if cta %} ilo--card__linklist {% endif %}">
|
|
6
6
|
<a class="ilo--card--link" href="{{link}}" title="{{title}}">
|
|
7
7
|
<span class="ilo--card--link--text">{{title}}</span>
|
|
8
8
|
</a>
|
|
@@ -52,13 +52,10 @@ featurecard:
|
|
|
52
52
|
preview: Can digital technology be an equality machine?
|
|
53
53
|
settings:
|
|
54
54
|
isvideo:
|
|
55
|
-
type:
|
|
55
|
+
type: boolean
|
|
56
56
|
label: Is a Video
|
|
57
57
|
description: Whether the card should display a video icon (for Feature card)
|
|
58
|
-
preview:
|
|
59
|
-
options:
|
|
60
|
-
"true": "true"
|
|
61
|
-
"false": "false"
|
|
58
|
+
preview: false
|
|
62
59
|
size:
|
|
63
60
|
type: select
|
|
64
61
|
label: size
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{# card_multilink.twig #}
|
|
2
2
|
|
|
3
|
-
<div class="ilo--card ilo--card__type__multilink {% if link|length > 0 %} ilo--card__action {% endif %} ilo--card__size__{{size}} {% if isvideo %} ilo--card__isvideo {% endif %} {% if linklist %} ilo--card__linklist {% endif %} {% if size == "wide" or size == "fluid" %} ilo--card__align__{{alignment}} {% endif %}">
|
|
3
|
+
<div class="ilo--card ilo--card__type__multilink {% if link|length > 0 %} ilo--card__action {% endif %} ilo--card__size__{{size}} {% if isvideo|boolval %} ilo--card__isvideo {% endif %} {% if linklist %} ilo--card__linklist {% endif %} {% if size == "wide" or size == "fluid" %} ilo--card__align__{{alignment}} {% endif %}">
|
|
4
4
|
{% if link|length > 0 %}
|
|
5
5
|
<a class="ilo--card--link" href="{{link}}" title="{{title}}">
|
|
6
6
|
<span class="ilo--card--link--text">{{title}}</span>
|
|
@@ -71,13 +71,10 @@ multilinkcard:
|
|
|
71
71
|
left: Left
|
|
72
72
|
right: Right
|
|
73
73
|
isvideo:
|
|
74
|
-
type:
|
|
74
|
+
type: boolean
|
|
75
75
|
label: is a Video
|
|
76
76
|
description: Whether the card should display a video icon (for Feature card)
|
|
77
|
-
preview:
|
|
78
|
-
options:
|
|
79
|
-
"true": "true"
|
|
80
|
-
"false": "false"
|
|
77
|
+
preview: false
|
|
81
78
|
size:
|
|
82
79
|
type: select
|
|
83
80
|
label: Size
|
|
@@ -3,7 +3,7 @@
|
|
|
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 %}">
|
|
6
|
+
<div class="ilo--card ilo--card__type__promo ilo--card__size__{{ size }} ilo--card__action ilo--card__theme__{{theme}} {% if cornercut|boolval %}ilo--card__cornercut{% endif %}">
|
|
7
7
|
<a class="ilo--card--link" href="{{link}}" title="{{title}}">
|
|
8
8
|
<span class="ilo--card--link--text">{{title}}</span>
|
|
9
9
|
</a>
|
|
@@ -41,14 +41,11 @@ promocard:
|
|
|
41
41
|
preview: Can digital technology be an equality machine?
|
|
42
42
|
settings:
|
|
43
43
|
cornercut:
|
|
44
|
-
type:
|
|
44
|
+
type: boolean
|
|
45
45
|
label: cornercut
|
|
46
46
|
description: Sets the cornercut of the card. If not set, the card will appear as `square`.
|
|
47
47
|
required: false
|
|
48
|
-
preview:
|
|
49
|
-
options:
|
|
50
|
-
"true": "true"
|
|
51
|
-
"false": "false"
|
|
48
|
+
preview: true
|
|
52
49
|
size:
|
|
53
50
|
type: select
|
|
54
51
|
label: Size
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
{% set cardcount = "three" %}
|
|
6
6
|
{% endif %}
|
|
7
7
|
|
|
8
|
-
<div class="ilo--cardgroup ilo--cardgroup__count__{{cardcount}} {% if collapsed %} ilo--cardgroup__collapsed {% endif %}">
|
|
8
|
+
<div class="ilo--cardgroup ilo--cardgroup__count__{{cardcount}} {% if collapsed|boolval %} ilo--cardgroup__collapsed {% endif %}">
|
|
9
9
|
<div class="ilo--cardgroup--inner">
|
|
10
10
|
{% for card in group %}
|
|
11
11
|
<div class="ilo--cardgroup--card">
|
|
@@ -6,14 +6,11 @@ cardgroup:
|
|
|
6
6
|
visibility: storybook
|
|
7
7
|
settings:
|
|
8
8
|
collapsed:
|
|
9
|
-
type:
|
|
9
|
+
type: boolean
|
|
10
10
|
label: collapsed
|
|
11
11
|
description: Optionally collapses margins between the cards.
|
|
12
12
|
required: false
|
|
13
|
-
preview:
|
|
14
|
-
options:
|
|
15
|
-
"true": "true"
|
|
16
|
-
"false": "false"
|
|
13
|
+
preview: false
|
|
17
14
|
cardcount:
|
|
18
15
|
type: select
|
|
19
16
|
label: collapsed
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
#}
|
|
4
4
|
<ol class="ilo--context-menu">
|
|
5
5
|
{% for link in links %}
|
|
6
|
-
<li class="ilo--context-menu--item{
|
|
6
|
+
<li class="ilo--context-menu--item{{ link.endsection|boolval ? ' endsection'}}">
|
|
7
7
|
<a href="{{link.url}}" class="ilo--context-menu--link">
|
|
8
8
|
<span class="ilo--context-menu--label">{{link.label}}</span>
|
|
9
9
|
</a>
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<div class="{{ fileUploadClasses|join(' ') }}">
|
|
15
15
|
<label class="{{ inputClass }}">
|
|
16
16
|
{{ placeholder }}
|
|
17
|
-
<input id="{{ id|default(name) }}" name="{{ name }}" {% if disabled %} disabled {% endif %} {% if multiple %} multiple {% endif %} placeholder="{{ placeholder }}" {% if required %} required {% endif %} type="file" data-label="{{ placeholder }}" aria-describedby="{{ ariaDescribedBy }}" {% if accept %} accept="{{ accept }}" {% endif %} data-loadcomponent="FileUpload" data-prefix="ilo"/>
|
|
17
|
+
<input id="{{ id|default(name) }}" name="{{ name }}" {% if disabled %} disabled {% endif %} {% if multiple|boolval %} multiple {% endif %} placeholder="{{ placeholder }}" {% if required %} required {% endif %} type="file" data-label="{{ placeholder }}" aria-describedby="{{ ariaDescribedBy }}" {% if accept %} accept="{{ accept }}" {% endif %} data-loadcomponent="FileUpload" data-prefix="ilo"/>
|
|
18
18
|
</label>
|
|
19
19
|
</div>
|
|
20
20
|
{% endblock %}
|
|
@@ -45,7 +45,7 @@ hero:
|
|
|
45
45
|
title: "Child labour"
|
|
46
46
|
theme: "dark"
|
|
47
47
|
background: "solid"
|
|
48
|
-
cornercut:
|
|
48
|
+
cornercut: true
|
|
49
49
|
eyebrow: ILO Topics
|
|
50
50
|
socialmedia:
|
|
51
51
|
icons:
|
|
@@ -164,7 +164,7 @@ hero:
|
|
|
164
164
|
datecopy: "11 February 2021"
|
|
165
165
|
theme: "light"
|
|
166
166
|
background: "solid"
|
|
167
|
-
cornercut:
|
|
167
|
+
cornercut: true
|
|
168
168
|
eyebrow: Women in management
|
|
169
169
|
socialmedia:
|
|
170
170
|
icons:
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{#
|
|
2
2
|
HEROCARD COMPONENT
|
|
3
3
|
#}
|
|
4
|
-
<div class="ilo--hero-card ilo--hero-card__theme__{{ theme }} ilo--hero-card__background__{{ background }} {% if cornercut
|
|
4
|
+
<div class="ilo--hero-card ilo--hero-card__theme__{{ theme }} ilo--hero-card__background__{{ background }} {% if cornercut|boolval %} ilo--hero-card__cornercut {% endif %}">
|
|
5
5
|
{% if eyebrow %}
|
|
6
6
|
<p class="{{ prefix }}--hero-card--eyebrow">{{ eyebrow }}</p>
|
|
7
7
|
{% endif %}
|
|
@@ -23,13 +23,10 @@ herocard:
|
|
|
23
23
|
transparent: transparent
|
|
24
24
|
preview: "solid"
|
|
25
25
|
cornercut:
|
|
26
|
-
type:
|
|
27
|
-
label:
|
|
26
|
+
type: boolean
|
|
27
|
+
label: Corner cut
|
|
28
28
|
description: Whether the card show have its right or left corner cut
|
|
29
|
-
|
|
30
|
-
"true": "true"
|
|
31
|
-
"false": "false"
|
|
32
|
-
preview: "true"
|
|
29
|
+
preview: true
|
|
33
30
|
fields:
|
|
34
31
|
url:
|
|
35
32
|
type: string
|
|
@@ -46,12 +46,9 @@ image:
|
|
|
46
46
|
src: "/images/large.jpg"
|
|
47
47
|
settings:
|
|
48
48
|
ishero:
|
|
49
|
-
type:
|
|
49
|
+
type: boolean
|
|
50
50
|
label: Is Hero
|
|
51
51
|
description: Is this image in a hero? If true, and credit exists, will display credit in a title attribute
|
|
52
|
-
preview:
|
|
52
|
+
preview: false
|
|
53
53
|
required: false
|
|
54
|
-
options:
|
|
55
|
-
"true": "true"
|
|
56
|
-
"false": "false"
|
|
57
54
|
visibility: storybook
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
{% endif %}
|
|
14
14
|
<ul class="ilo--link-list--links">
|
|
15
15
|
{% for link in group.links %}
|
|
16
|
-
<li class="ilo--link-list--links--item{
|
|
16
|
+
<li class="ilo--link-list--links--item{{ link.indented|boolval ? ' indented'}}">
|
|
17
17
|
<a href="{{link.url}}" class="ilo--link-list--link">
|
|
18
18
|
<span class="ilo--link-list--label">{{link.label}}</span>
|
|
19
19
|
</a>
|
|
@@ -31,13 +31,13 @@ linklist:
|
|
|
31
31
|
links:
|
|
32
32
|
- label: Section 2 Link One
|
|
33
33
|
url: "http://www.google.com"
|
|
34
|
-
- indented:
|
|
34
|
+
- indented: true
|
|
35
35
|
label: Section 2 Link Two
|
|
36
36
|
url: "http://www.google.com"
|
|
37
|
-
- indented:
|
|
37
|
+
- indented: true
|
|
38
38
|
label: Section 2 Link Three
|
|
39
39
|
url: "http://www.google.com"
|
|
40
|
-
- indented:
|
|
40
|
+
- indented: true
|
|
41
41
|
label: Section 2 Link Four
|
|
42
42
|
url: "http://www.google.com"
|
|
43
43
|
- label: Section 2 Link Five Is Slightly Longer
|
|
@@ -26,12 +26,9 @@ readmore:
|
|
|
26
26
|
required: true
|
|
27
27
|
settings:
|
|
28
28
|
openatstart:
|
|
29
|
-
type:
|
|
29
|
+
type: boolean
|
|
30
30
|
label: Open At Start
|
|
31
31
|
description: should the read more be open at page load?
|
|
32
|
-
|
|
33
|
-
"true": "true"
|
|
34
|
-
"false": "false"
|
|
35
|
-
preview: "false"
|
|
32
|
+
preview: false
|
|
36
33
|
required: true
|
|
37
34
|
visibility: storybook
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{#
|
|
2
2
|
TABLE COMPONENT
|
|
3
3
|
#}
|
|
4
|
-
<div class="ilo--table{% if zebra
|
|
4
|
+
<div class="ilo--table{% if zebra|boolval %} ilo--table--zebra{% endif %}{% if smallrows|boolval %} ilo--table--small{% endif %}" data-prefix="ilo" data-loadcomponent="Table">
|
|
5
5
|
<header class="ilo--table--header">
|
|
6
6
|
<h3 class="ilo--table--headline">
|
|
7
7
|
{{headline}}
|
|
@@ -92,21 +92,15 @@ table:
|
|
|
92
92
|
- "01/01/2023"
|
|
93
93
|
settings:
|
|
94
94
|
zebra:
|
|
95
|
-
type:
|
|
95
|
+
type: boolean
|
|
96
96
|
label: Zebra Striping
|
|
97
97
|
description: Should the table display zebra striping?
|
|
98
|
-
|
|
99
|
-
"true": "true"
|
|
100
|
-
"false": "false"
|
|
101
|
-
preview: "false"
|
|
98
|
+
preview: false
|
|
102
99
|
required: false
|
|
103
100
|
smallrows:
|
|
104
|
-
type:
|
|
101
|
+
type: boolean
|
|
105
102
|
label: Small Rows
|
|
106
103
|
description: Should the table have rows with a smaller height?
|
|
107
|
-
|
|
108
|
-
"true": "true"
|
|
109
|
-
"false": "false"
|
|
110
|
-
preview: "false"
|
|
104
|
+
preview: false
|
|
111
105
|
required: false
|
|
112
106
|
visibility: storybook
|
|
@@ -24,13 +24,10 @@ tag:
|
|
|
24
24
|
faker: https://www.google.com/
|
|
25
25
|
settings:
|
|
26
26
|
defaultActive:
|
|
27
|
-
type:
|
|
27
|
+
type: boolean
|
|
28
28
|
label: Default Active
|
|
29
29
|
description: The tag loads in an active state
|
|
30
|
-
|
|
31
|
-
"true": "true"
|
|
32
|
-
"false": "false"
|
|
33
|
-
preview: "false"
|
|
30
|
+
preview: false
|
|
34
31
|
required: false
|
|
35
32
|
tagType:
|
|
36
33
|
type: select
|
|
@@ -23,13 +23,10 @@ tags:
|
|
|
23
23
|
defaultActive: false
|
|
24
24
|
settings:
|
|
25
25
|
allowMultipleActive:
|
|
26
|
-
type:
|
|
26
|
+
type: boolean
|
|
27
27
|
label: Allow Multiple Active
|
|
28
28
|
description: Allow multiple tag items to be active at once.
|
|
29
|
-
|
|
30
|
-
"true": "true"
|
|
31
|
-
"false": "false"
|
|
32
|
-
preview: "true"
|
|
29
|
+
preview: true
|
|
33
30
|
required: false
|
|
34
31
|
tagType:
|
|
35
32
|
type: select
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
{% set icontheme = icontheme|default("light") %}
|
|
4
4
|
{% set theme = theme|default("dark") %}
|
|
5
5
|
|
|
6
|
-
<div class="ilo--tooltip--wrapper {% if icon
|
|
7
|
-
{% if not icon
|
|
6
|
+
<div class="ilo--tooltip--wrapper {% if icon|boolval %} ilo--tooltip--wrapper__icon ilo--tooltip--wrapper__icon__theme__{{icontheme}} {% endif %}" role="status" aria-live="polite" aria-relevant="additions" data-loadcomponent="Tooltip" data-prefix="ilo">
|
|
7
|
+
{% if not icon|boolval %}
|
|
8
8
|
{{ children }}
|
|
9
9
|
{% endif %}
|
|
10
10
|
<span data-id={{tooltipId}} id="tooltip" role="tooltip" class="ilo--tooltip ilo--tooltip--{{theme}}" data-alignment="left" >
|
|
@@ -24,13 +24,10 @@ tooltip:
|
|
|
24
24
|
preview: "<a href='https://www.google.com/'>This is testing for the tooltip</a>"
|
|
25
25
|
settings:
|
|
26
26
|
icon:
|
|
27
|
-
type:
|
|
27
|
+
type: boolean
|
|
28
28
|
label: Icon
|
|
29
29
|
description: does this tooltip have the "info" icon?
|
|
30
|
-
|
|
31
|
-
"true": "true"
|
|
32
|
-
"false": "false"
|
|
33
|
-
preview: "true"
|
|
30
|
+
preview: true
|
|
34
31
|
required: true
|
|
35
32
|
icontheme:
|
|
36
33
|
type: select
|