@ilo-org/twig 1.1.4 → 1.1.6
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.behavior.js +1 -1
- package/dist/components/accordion/accordion.css +1 -1
- package/dist/components/breadcrumb/breadcrumb.behavior.js +1 -1
- package/dist/components/breadcrumb/breadcrumb.css +1 -1
- package/dist/components/button/button.css +1 -1
- package/dist/components/button/button.twig +2 -2
- package/dist/components/callout/callout.behavior.js +1 -1
- package/dist/components/callout/callout.css +1 -1
- package/dist/components/callout/callout.twig +8 -8
- package/dist/components/card/card.css +1 -1
- package/dist/components/checkbox/checkbox.css +1 -1
- package/dist/components/contextmenu/contextmenu.css +1 -1
- package/dist/components/datacard/datacard.css +1 -1
- package/dist/components/dropdown/dropdown.css +1 -1
- package/dist/components/featurecard/featurecard.css +1 -1
- package/dist/components/fieldset/fieldset.css +1 -1
- package/dist/components/file-upload/file-upload.css +1 -1
- package/dist/components/fileupload/fileupload.behavior.js +1 -1
- package/dist/components/footer/footer.css +1 -1
- package/dist/components/formcontrol/formcontrol.css +1 -1
- package/dist/components/heading/heading.css +1 -1
- package/dist/components/herocard/herocard.css +1 -1
- package/dist/components/icon/icon.behavior.js +1 -1
- package/dist/components/icon/icon.twig +1 -1
- package/dist/components/input/input.css +1 -1
- package/dist/components/linklist/linklist.behavior.js +1 -1
- package/dist/components/linklist/linklist.css +1 -1
- package/dist/components/list/list.css +1 -1
- package/dist/components/loading/loading.behavior.js +1 -1
- package/dist/components/loading/loading.css +1 -1
- package/dist/components/logo/logo.css +1 -1
- package/dist/components/modal/modal.behavior.js +1 -1
- package/dist/components/navigation/navigation.behavior.js +1 -1
- package/dist/components/navigation/navigation.css +1 -1
- package/dist/components/notification/notification.behavior.js +1 -1
- package/dist/components/pagination/pagination.css +1 -1
- package/dist/components/profile/profile.css +1 -1
- package/dist/components/readmore/readmore.behavior.js +1 -1
- package/dist/components/readmore/readmore.css +1 -1
- package/dist/components/richtext/richtext.css +1 -1
- package/dist/components/search/search.behavior.js +1 -1
- package/dist/components/searchfield/searchfield.css +1 -1
- package/dist/components/socialmedia/socialmedia.css +1 -1
- package/dist/components/statcard/statcard.css +1 -1
- package/dist/components/table/table.behavior.js +1 -1
- package/dist/components/table/table.css +1 -1
- package/dist/components/tableofcontents/tableofcontents.behavior.js +1 -1
- package/dist/components/tableofcontents/tableofcontents.css +1 -1
- package/dist/components/tabs/tabs.behavior.js +1 -1
- package/dist/components/tabs/tabs.css +1 -1
- package/dist/components/tag/tag.behavior.js +1 -1
- package/dist/components/tag/tag.css +1 -1
- package/dist/components/textarea/textarea.css +1 -1
- package/dist/components/textinput/textinput.css +1 -1
- package/dist/components/tooltip/tooltip.behavior.js +1 -1
- package/dist/components/tooltip/tooltip.css +1 -1
- package/dist/components/video/video.behavior.js +5 -5
- package/dist/global/styles.css +2 -2
- package/package.json +3 -3
- package/src/patterns/components/button/button.twig +2 -2
- package/src/patterns/components/callout/callout.twig +8 -8
- package/src/patterns/components/icon/icon.twig +1 -1
- package/dist/components/icon/icon.css +0 -1
- package/src/tokens/exports/_font-families.scss +0 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ilo-org/twig",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.6",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Twig components for the ILO's Design System",
|
|
6
6
|
"publishConfig": {
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
"@ilo-org/brand-assets": "0.5.3",
|
|
52
52
|
"@ilo-org/fonts": "0.2.2",
|
|
53
53
|
"@ilo-org/icons": "0.4.0",
|
|
54
|
-
"@ilo-org/
|
|
55
|
-
"@ilo-org/
|
|
54
|
+
"@ilo-org/styles": "1.2.0",
|
|
55
|
+
"@ilo-org/themes": "0.9.1",
|
|
56
56
|
"@ilo-org/utils": "0.1.1"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
BUTTON COMPONENT
|
|
3
3
|
#}
|
|
4
4
|
{% if url %}
|
|
5
|
-
<a class="{{prefix}}--button ilo--
|
|
5
|
+
<a class="{{prefix}}--button ilo--button__{{size}} {{prefix}}--button__{{type}}{% if icon %} {{prefix}}--button--icon {{prefix}}--button--icon--position__{{iconPosition}}{% endif %}{% if icononly|boolval %} {{prefix}}--button--icon--only{% endif %}{% if className %} {{className}}{% endif %}" href="{{url}}" {% if target is defined and target != 'false' %} 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="{{prefix}}--button ilo--
|
|
19
|
+
<button class="{{prefix}}--button ilo--button__{{size}} {{prefix}}--button__{{type}}{% if icon %} {{prefix}}--button--icon {{prefix}}--button--icon--position__{{iconPosition}}{% endif %}{% if icononly|boolval %} {{prefix}}--button--icon--only{% endif %}{% if className %} {{className}}{% endif %}" {% if kind %} type="{{kind}}" {% endif %} {% if opensmodal %} aria-haspopup="dialog" {% endif %} {{ disabled|boolval ? ' disabled' }}>
|
|
20
20
|
<span class="button__label">{{label}}</span>
|
|
21
21
|
{{ block("button_icon") }}
|
|
22
22
|
</button>
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{#
|
|
2
2
|
CALLOUT COMPONENT
|
|
3
3
|
#}
|
|
4
|
-
<div class="{{prefix}}--callout {{prefix}}--
|
|
5
|
-
<div class="{{prefix}}--
|
|
6
|
-
<span class="{{prefix}}--callout--icon icon
|
|
4
|
+
<div class="{{prefix}}--callout {{prefix}}--callout__{{alert}} {% if isCollapsible|boolval and isOpen|boolval %} {{prefix}}--callout--open {% endif %} {% if isCollapsible|boolval %} {{prefix}}--callout--collapse {% endif %}" data-loadcomponent="Callout">
|
|
5
|
+
<div class="{{prefix}}--callout__sidebar">
|
|
6
|
+
<span class="{{prefix}}--callout--icon icon icon__{{alert}}"></span>
|
|
7
7
|
</div>
|
|
8
|
-
<div class="{{prefix}}--
|
|
9
|
-
<div class="{{prefix}}--
|
|
10
|
-
<h5 class="{{prefix}}--
|
|
8
|
+
<div class="{{prefix}}--callout__content">
|
|
9
|
+
<div class="{{prefix}}--callout__header">
|
|
10
|
+
<h5 class="{{prefix}}--callout__title">{{ title }}</h5>
|
|
11
11
|
{% if isCollapsible|boolval %}
|
|
12
12
|
<button class="{{prefix}}--callout--toggle" type="button" data-open="{{ toggleOpenLabel }}" data-closed="{{ toggleClosedLabel }}">
|
|
13
13
|
<span class="{{prefix}}--callout--button-text">
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
</button>
|
|
22
22
|
{% endif %}
|
|
23
23
|
</div>
|
|
24
|
-
{{ content }}
|
|
24
|
+
<p class="{{prefix}}--callout__description">{{ content }}</p>
|
|
25
25
|
{% if button %}
|
|
26
|
-
<div class="{{prefix}}--
|
|
26
|
+
<div class="{{prefix}}--callout__footer">
|
|
27
27
|
{% include '@components/button/button.twig' with {
|
|
28
28
|
label: button.label,
|
|
29
29
|
url: button.url,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
{#
|
|
2
2
|
ICON COMPONENT
|
|
3
3
|
#}
|
|
4
|
-
<svg class="{{prefix}}--icon" data-name="{{name}}" data-size="{{size}}" data-color="{{color}}" data-loadcomponent="Icon"></svg>
|
|
4
|
+
<svg width="24" height="24" class="{{prefix}}--icon" data-name="{{name}}" data-size="{{size}}" data-color="{{color}}" data-loadcomponent="Icon"></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.ilo--icon:not([data-js-processed=true]){height:24px;width:24px}
|