@openeuropa/bcl-theme-joinup 0.4298.202511051800 → 0.4360.202601141610
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/css/oe-bcl-joinup.css +167 -85
- package/css/oe-bcl-joinup.css.map +1 -1
- package/css/oe-bcl-joinup.min.css +1 -1
- package/css/oe-bcl-joinup.min.css.map +1 -1
- package/js/oe-bcl-joinup.bundle.js +112 -1
- package/js/oe-bcl-joinup.bundle.js.map +1 -1
- package/js/oe-bcl-joinup.bundle.min.js +1 -1
- package/js/oe-bcl-joinup.bundle.min.js.map +1 -1
- package/js/oe-bcl-joinup.esm.js +111 -1
- package/js/oe-bcl-joinup.esm.js.map +1 -1
- package/js/oe-bcl-joinup.esm.min.js +1 -1
- package/js/oe-bcl-joinup.esm.min.js.map +1 -1
- package/js/oe-bcl-joinup.umd.js +112 -1
- package/js/oe-bcl-joinup.umd.js.map +1 -1
- package/js/oe-bcl-joinup.umd.min.js +1 -1
- package/js/oe-bcl-joinup.umd.min.js.map +1 -1
- package/package.json +7 -7
- package/src/js/index.esm.js +2 -0
- package/src/js/index.umd.js +2 -0
- package/templates/bcl-accordion/accordion.html.twig +42 -46
- package/templates/bcl-alert/alert.html.twig +18 -21
- package/templates/bcl-badge/badge.html.twig +11 -15
- package/templates/bcl-banner/banner.html.twig +34 -37
- package/templates/bcl-base-templates/content-type.html.twig +63 -67
- package/templates/bcl-base-templates/listing-page.html.twig +31 -31
- package/templates/bcl-base-templates/sidebar-search.html.twig +10 -10
- package/templates/bcl-blockquote/blockquote.html.twig +17 -20
- package/templates/bcl-breadcrumb/breadcrumb.html.twig +24 -28
- package/templates/bcl-button/button.html.twig +24 -27
- package/templates/bcl-button-group/button-group.html.twig +25 -29
- package/templates/bcl-card/card.html.twig +98 -101
- package/templates/bcl-card-layout/card-layout.html.twig +34 -37
- package/templates/bcl-carousel/carousel.html.twig +64 -67
- package/templates/bcl-contact-form/contact-form.html.twig +1 -1
- package/templates/bcl-content-banner/content-banner.html.twig +37 -40
- package/templates/bcl-date-block/date-block.html.twig +26 -29
- package/templates/bcl-description-list/description-list-details.html.twig +6 -9
- package/templates/bcl-description-list/description-list-title.html.twig +11 -14
- package/templates/bcl-description-list/description-list.html.twig +44 -48
- package/templates/bcl-dropdown/dropdown.html.twig +48 -52
- package/templates/bcl-event/event.html.twig +7 -7
- package/templates/bcl-fact-figures/fact-figures.html.twig +34 -37
- package/templates/bcl-featured-media/featured-media.html.twig +42 -46
- package/templates/bcl-file/file-translations.html.twig +29 -32
- package/templates/bcl-file/file.html.twig +47 -50
- package/templates/bcl-footer/footer.html.twig +31 -34
- package/templates/bcl-form/form.html.twig +70 -73
- package/templates/bcl-form-input/form-input.html.twig +57 -61
- package/templates/bcl-gallery/gallery-item.html.twig +20 -23
- package/templates/bcl-gallery/gallery.html.twig +62 -66
- package/templates/bcl-glossary/glossary-detail.html.twig +19 -19
- package/templates/bcl-glossary/glossary-listing.html.twig +6 -6
- package/templates/bcl-group/group-landing.html.twig +69 -69
- package/templates/bcl-group/group.html.twig +19 -19
- package/templates/bcl-header/header.html.twig +71 -82
- package/templates/bcl-heading/heading.html.twig +13 -17
- package/templates/bcl-icon/icon.html.twig +10 -13
- package/templates/bcl-inpage-navigation/inpage-navigation.html.twig +20 -23
- package/templates/bcl-landing-page/landing-page.html.twig +33 -33
- package/templates/bcl-language-list/language-list-grid.html.twig +25 -28
- package/templates/bcl-language-list/language-list-modal.html.twig +52 -52
- package/templates/bcl-language-list/language-list.html.twig +33 -37
- package/templates/bcl-language-switcher/language-switcher.html.twig +12 -15
- package/templates/bcl-link/link.html.twig +24 -27
- package/templates/bcl-links-block/links-block.html.twig +30 -34
- package/templates/bcl-list-group/list-group.html.twig +43 -47
- package/templates/bcl-listing/listing.html.twig +88 -91
- package/templates/bcl-mega-menu/mega-menu-items.html.twig +18 -21
- package/templates/bcl-mega-menu/mega-menu-submenu.html.twig +28 -26
- package/templates/bcl-mega-menu/mega-menu.html.twig +37 -38
- package/templates/bcl-modal/modal.html.twig +21 -23
- package/templates/bcl-navbar/navbar.html.twig +35 -38
- package/templates/bcl-navigation/navigation.html.twig +105 -110
- package/templates/bcl-offcanvas/offcanvas.html.twig +33 -36
- package/templates/bcl-page/page.html.twig +27 -27
- package/templates/bcl-pagination/pagination-item.html.twig +22 -26
- package/templates/bcl-pagination/pagination.html.twig +59 -62
- package/templates/bcl-pagination-v2/pagination-item.html.twig +31 -35
- package/templates/bcl-pagination-v2/pagination.html.twig +79 -82
- package/templates/bcl-person/person.html.twig +12 -12
- package/templates/bcl-placeholder/placeholder.html.twig +14 -18
- package/templates/bcl-progress/progress.html.twig +16 -20
- package/templates/bcl-project/project-lists.html.twig +25 -29
- package/templates/bcl-project/project.html.twig +35 -35
- package/templates/bcl-project-status/project-contributions.html.twig +25 -28
- package/templates/bcl-project-status/project-status.html.twig +32 -37
- package/templates/bcl-recent-activities/recent-activities.html.twig +13 -16
- package/templates/bcl-search/search.html.twig +12 -12
- package/templates/bcl-search-form/search-form.html.twig +21 -24
- package/templates/bcl-select/select.html.twig +52 -56
- package/templates/bcl-spinner/spinner.html.twig +10 -13
- package/templates/bcl-subscription/subscription-modal.html.twig +7 -7
- package/templates/bcl-subscription/subscription.html.twig +3 -3
- package/templates/bcl-subscription-block/subscription-block.html.twig +14 -17
- package/templates/bcl-table/table.html.twig +61 -65
- package/templates/bcl-textarea/textarea.html.twig +44 -47
- package/templates/bcl-timeline/timeline-item.html.twig +12 -15
- package/templates/bcl-timeline/timeline.html.twig +42 -45
- package/templates/bcl-toasts/toasts.html.twig +56 -60
- package/templates/bcl-user/user-compact.html.twig +24 -27
- package/templates/bcl-user/user-terms.html.twig +6 -6
- package/templates/bcl-user/user.html.twig +117 -117
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@openeuropa/bcl-theme-joinup",
|
|
3
3
|
"author": "European Commission",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.4360.202601141610",
|
|
6
6
|
"description": "OE - BCL theme joinup",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"align-templates": "lerna --scope \"@openeuropa/bcl-twig-templates\" run prepublish",
|
|
@@ -28,15 +28,15 @@
|
|
|
28
28
|
"@ecl/resources-eu-logo": "3.7.1",
|
|
29
29
|
"@ecl/resources-flag-icons": "3.7.1",
|
|
30
30
|
"@fontsource/roboto": "5.2.8",
|
|
31
|
-
"@openeuropa/bcl-bootstrap": "^0.
|
|
32
|
-
"@openeuropa/bcl-builder": "^0.
|
|
33
|
-
"@openeuropa/bcl-theme-default": "^0.
|
|
34
|
-
"@openeuropa/bcl-twig-templates": "^0.
|
|
31
|
+
"@openeuropa/bcl-bootstrap": "^0.4360.202601141610",
|
|
32
|
+
"@openeuropa/bcl-builder": "^0.4360.202601141610",
|
|
33
|
+
"@openeuropa/bcl-theme-default": "^0.4360.202601141610",
|
|
34
|
+
"@openeuropa/bcl-twig-templates": "^0.4360.202601141610",
|
|
35
35
|
"@rollup/plugin-replace": "6.0.2",
|
|
36
36
|
"copyfiles": "2.4.1",
|
|
37
37
|
"cross-env": "10.1.0",
|
|
38
38
|
"flag-icons": "6.9.2",
|
|
39
|
-
"glob": "11.0
|
|
39
|
+
"glob": "11.1.0",
|
|
40
40
|
"npm-run-all": "4.1.5",
|
|
41
41
|
"slim-select": "1.27.1"
|
|
42
42
|
},
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"design-system",
|
|
58
58
|
"twig"
|
|
59
59
|
],
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "2caf9255f88587416f6e83e572a1f20e4cf206f5"
|
|
61
61
|
}
|
package/src/js/index.esm.js
CHANGED
|
@@ -23,6 +23,7 @@ import ScrollSpy from "@openeuropa/bcl-bootstrap/js/src/scrollspy-legacy";
|
|
|
23
23
|
import Tab from "@openeuropa/bcl-bootstrap/js/src/tab";
|
|
24
24
|
import Toast from "@openeuropa/bcl-bootstrap/js/src/toast";
|
|
25
25
|
import Tooltip from "@openeuropa/bcl-bootstrap/js/src/tooltip";
|
|
26
|
+
import Header from "@openeuropa/bcl-theme-default/src/js/header/header";
|
|
26
27
|
|
|
27
28
|
export {
|
|
28
29
|
Alert,
|
|
@@ -43,4 +44,5 @@ export {
|
|
|
43
44
|
Tab,
|
|
44
45
|
Toast,
|
|
45
46
|
Tooltip,
|
|
47
|
+
Header,
|
|
46
48
|
};
|
package/src/js/index.umd.js
CHANGED
|
@@ -23,6 +23,7 @@ import ScrollSpy from "@openeuropa/bcl-bootstrap/js/src/scrollspy-legacy";
|
|
|
23
23
|
import Tab from "@openeuropa/bcl-bootstrap/js/src/tab";
|
|
24
24
|
import Toast from "@openeuropa/bcl-bootstrap/js/src/toast";
|
|
25
25
|
import Tooltip from "@openeuropa/bcl-bootstrap/js/src/tooltip";
|
|
26
|
+
import Header from "@openeuropa/bcl-theme-default/src/js/header/header";
|
|
26
27
|
|
|
27
28
|
export default {
|
|
28
29
|
Alert,
|
|
@@ -43,4 +44,5 @@ export default {
|
|
|
43
44
|
Tab,
|
|
44
45
|
Toast,
|
|
45
46
|
Tooltip,
|
|
47
|
+
Header,
|
|
46
48
|
};
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
{% apply spaceless %}
|
|
2
|
-
|
|
3
1
|
{#
|
|
4
2
|
Parameters:
|
|
5
3
|
- title (string) (default: '')
|
|
@@ -22,7 +20,7 @@
|
|
|
22
20
|
- attributes (drupal attrs)
|
|
23
21
|
#}
|
|
24
22
|
|
|
25
|
-
{
|
|
23
|
+
{%- set _title = title|default('') %}
|
|
26
24
|
{% set _title_tag = title_tag|default('h2') %}
|
|
27
25
|
{% set _title_link = title_link|default({}) %}
|
|
28
26
|
{% set _title_attributes = title_attributes ?: create_attribute() %}
|
|
@@ -34,16 +32,16 @@
|
|
|
34
32
|
{% set _open_item_id = open_item_id|default(0) %}
|
|
35
33
|
{% set _classes = ['accordion'] %}
|
|
36
34
|
{% if _flush %}
|
|
37
|
-
{
|
|
35
|
+
{%- set _classes = _classes|merge(['accordion-flush']) %}
|
|
38
36
|
{% endif %}
|
|
39
37
|
|
|
40
|
-
{
|
|
41
|
-
{
|
|
38
|
+
{%- if attributes is empty %}
|
|
39
|
+
{%- set attributes = create_attribute() %}
|
|
42
40
|
{% endif %}
|
|
43
41
|
|
|
44
|
-
{
|
|
42
|
+
{%- set attributes = attributes.addClass(_classes).setAttribute('id', 'accordion-' ~ _id) %}
|
|
45
43
|
|
|
46
|
-
{
|
|
44
|
+
{%- if _items is not empty -%}
|
|
47
45
|
<div
|
|
48
46
|
{{ attributes }}
|
|
49
47
|
>
|
|
@@ -57,52 +55,52 @@
|
|
|
57
55
|
{%- endif -%}
|
|
58
56
|
|
|
59
57
|
{% if _items|length > 1 and (_expand_button is not empty or _collapse_button is not empty) %}
|
|
60
|
-
{
|
|
58
|
+
{%- set wrapper_attributes = create_attribute().addClass(['d-flex', 'justify-content-end', 'gap-3', 'mb-3']) -%}
|
|
61
59
|
<div
|
|
62
60
|
{{ wrapper_attributes }}
|
|
63
61
|
>
|
|
64
|
-
{
|
|
65
|
-
{
|
|
66
|
-
{
|
|
62
|
+
{%- if _expand_button is not empty %}
|
|
63
|
+
{%- if _expand_button.attributes is empty %}
|
|
64
|
+
{%- set _expand_button = _expand_button|merge({
|
|
67
65
|
attributes: create_attribute()
|
|
68
66
|
})
|
|
69
67
|
%}
|
|
70
|
-
{
|
|
71
|
-
{
|
|
68
|
+
{%- endif %}
|
|
69
|
+
{%- include '@oe-bcl/bcl-button/button.html.twig' with _expand_button|merge({
|
|
72
70
|
attributes: _expand_button.attributes
|
|
73
71
|
.setAttribute('data-target', 'accordion-' ~ _id)
|
|
74
72
|
.setAttribute('data-action', 'expand')
|
|
75
73
|
}) only %}
|
|
76
|
-
{
|
|
77
|
-
{
|
|
78
|
-
{
|
|
79
|
-
{
|
|
74
|
+
{%- endif %}
|
|
75
|
+
{%- if _collapse_button is not empty %}
|
|
76
|
+
{%- if _collapse_button.attributes is empty %}
|
|
77
|
+
{%- set _collapse_button = _collapse_button|merge({
|
|
80
78
|
attributes: create_attribute()
|
|
81
79
|
})
|
|
82
80
|
%}
|
|
83
|
-
{
|
|
84
|
-
{
|
|
81
|
+
{%- endif %}
|
|
82
|
+
{%- include '@oe-bcl/bcl-button/button.html.twig' with _collapse_button|merge({
|
|
85
83
|
attributes: _collapse_button.attributes
|
|
86
84
|
.setAttribute('data-target', 'accordion-' ~ _id)
|
|
87
85
|
.setAttribute('data-action', 'collapse')
|
|
88
86
|
}) only %}
|
|
89
|
-
{
|
|
87
|
+
{%- endif -%}
|
|
90
88
|
</div>
|
|
91
|
-
{
|
|
89
|
+
{%- endif -%}
|
|
92
90
|
<div class="accordion-items-wrapper">
|
|
93
|
-
{
|
|
94
|
-
{
|
|
95
|
-
{
|
|
96
|
-
{
|
|
97
|
-
{
|
|
98
|
-
{
|
|
91
|
+
{%- for _item in _items %}
|
|
92
|
+
{%- set _open_item = _open_item_id == loop.index %}
|
|
93
|
+
{%- set _button_classes = ['accordion-button'] %}
|
|
94
|
+
{%- if not _open_item %}
|
|
95
|
+
{%- set _button_classes = _button_classes|merge(['collapsed']) %}
|
|
96
|
+
{%- endif -%}
|
|
99
97
|
<div class="accordion-item">
|
|
100
|
-
{%- set _item_title_tag = _item.title_tag|default('h2')
|
|
101
|
-
<{{ _item_title_tag }}
|
|
102
|
-
class="accordion-header"
|
|
98
|
+
{%- set _item_title_tag = _item.title_tag|default('h2') -%}
|
|
99
|
+
<{{ _item_title_tag }}
|
|
100
|
+
class="accordion-header"
|
|
103
101
|
id="heading-{{ _id }}-{{ loop.index }}"
|
|
104
102
|
>
|
|
105
|
-
{
|
|
103
|
+
{%- set button_attributes = create_attribute()
|
|
106
104
|
.addClass(_button_classes)
|
|
107
105
|
.setAttribute('data-bs-toggle', 'collapse')
|
|
108
106
|
.setAttribute('autocomplete', 'off')
|
|
@@ -110,35 +108,33 @@
|
|
|
110
108
|
.setAttribute('aria-controls', 'collapse-' ~ _id ~ '-' ~ loop.index)
|
|
111
109
|
.setAttribute('aria-expanded', open_item ? 'true' : 'false')
|
|
112
110
|
%}
|
|
113
|
-
{
|
|
111
|
+
{%- set item_title -%}
|
|
114
112
|
<span>
|
|
115
113
|
{{- _item.title -}}
|
|
116
114
|
</span>
|
|
117
|
-
{
|
|
118
|
-
{
|
|
115
|
+
{%- endset %}
|
|
116
|
+
{%- include '@oe-bcl/bcl-button/button.html.twig' with {
|
|
119
117
|
label: item_title,
|
|
120
118
|
clean_class: true,
|
|
121
119
|
attributes: button_attributes
|
|
122
|
-
} only
|
|
123
|
-
</{{ _item_title_tag }}>
|
|
120
|
+
} only -%}
|
|
121
|
+
</{{ _item_title_tag }}>{# -#}
|
|
124
122
|
<div
|
|
125
123
|
id="collapse-{{ _id }}-{{ loop.index }}"
|
|
126
124
|
class="accordion-collapse collapse{{ _open_item ? ' show' }}"
|
|
127
125
|
aria-labelledby="heading-{{ _id }}-{{ loop.index }}"
|
|
128
126
|
role="region"
|
|
129
|
-
{% if not _item.stay_open and _expand_button is empty
|
|
127
|
+
{% if not _item.stay_open and _expand_button is empty %}
|
|
130
128
|
data-bs-parent="#accordion-{{ _id }}"
|
|
131
129
|
{% endif %}
|
|
132
|
-
>
|
|
130
|
+
>{# -#}
|
|
133
131
|
<div class="accordion-body">
|
|
134
132
|
{%- set _content = _item.content|default('') %}
|
|
135
133
|
{%- block content _content -%}
|
|
136
|
-
</div>
|
|
137
|
-
</div>
|
|
134
|
+
</div>{# -#}
|
|
135
|
+
</div>{# -#}
|
|
138
136
|
</div>
|
|
139
|
-
{
|
|
140
|
-
</div>
|
|
137
|
+
{%- endfor -%}
|
|
138
|
+
</div>{# -#}
|
|
141
139
|
</div>
|
|
142
|
-
{
|
|
143
|
-
|
|
144
|
-
{% endapply %}
|
|
140
|
+
{%- endif -%}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
{% apply spaceless %}
|
|
2
|
-
|
|
3
1
|
{# Parameters:
|
|
4
2
|
- message (string) (default: '')
|
|
5
3
|
- heading (string) (default: '')
|
|
@@ -11,7 +9,7 @@
|
|
|
11
9
|
- attributes (drupal attrs)
|
|
12
10
|
#}
|
|
13
11
|
|
|
14
|
-
{
|
|
12
|
+
{%- set _message = message|default('') %}
|
|
15
13
|
{% set _heading = heading|default('') %}
|
|
16
14
|
{% set _variant = variant|default('primary') %}
|
|
17
15
|
{% set _dismissible = dismissible ?? true %}
|
|
@@ -19,7 +17,7 @@
|
|
|
19
17
|
{% set _icon_path = icon_path|default('') %}
|
|
20
18
|
{% set _icon_name = icon_name|default('') %}
|
|
21
19
|
|
|
22
|
-
{
|
|
20
|
+
{%- set _classes = ['alert', 'alert-' ~ _variant|e('html_attr'), 'd-flex', 'align-items-center'] %}
|
|
23
21
|
{% set _icon_names = {
|
|
24
22
|
primary: "info-circle-fill",
|
|
25
23
|
secondary: "info-circle-fill",
|
|
@@ -32,36 +30,36 @@
|
|
|
32
30
|
}
|
|
33
31
|
%}
|
|
34
32
|
|
|
35
|
-
{
|
|
36
|
-
{
|
|
33
|
+
{%- if _dismissible %}
|
|
34
|
+
{%- set _classes = _classes|merge(['alert-dismissible']) %}
|
|
37
35
|
{% endif %}
|
|
38
36
|
{% if _animated_dismiss %}
|
|
39
|
-
{
|
|
37
|
+
{%- set _classes = _classes|merge(['fade', 'show']) %}
|
|
40
38
|
{% endif %}
|
|
41
39
|
|
|
42
|
-
{
|
|
40
|
+
{%- set _classes = _classes|merge(['text-dark']) %}
|
|
43
41
|
|
|
44
|
-
{
|
|
42
|
+
{%- set _icon_classes = ['flex-shrink-0 me-3 mt-1 align-self-start' ] %}
|
|
45
43
|
|
|
46
|
-
{
|
|
47
|
-
{
|
|
44
|
+
{%- if _variant != 'light' %}
|
|
45
|
+
{%- set _icon_classes = _icon_classes|merge(['text-' ~ _variant]) %}
|
|
48
46
|
{% endif %}
|
|
49
47
|
|
|
50
|
-
{
|
|
51
|
-
{
|
|
48
|
+
{%- if attributes is empty %}
|
|
49
|
+
{%- set attributes = create_attribute() %}
|
|
52
50
|
{% endif %}
|
|
53
51
|
|
|
54
|
-
{
|
|
52
|
+
{%- set attributes = attributes.addClass(_classes).setAttribute('role', 'alert') -%}
|
|
55
53
|
|
|
56
54
|
<div {{ attributes }}>
|
|
57
|
-
{
|
|
58
|
-
{
|
|
55
|
+
{%- if _icon_path is not empty %}
|
|
56
|
+
{%- include '@oe-bcl/bcl-icon/icon.html.twig' with {
|
|
59
57
|
name: _icon_name ?: _icon_names[_variant],
|
|
60
58
|
size: 's',
|
|
61
59
|
path: _icon_path,
|
|
62
60
|
attributes: create_attribute().addClass(_icon_classes),
|
|
63
61
|
} only %}
|
|
64
|
-
{% endif
|
|
62
|
+
{% endif -%}
|
|
65
63
|
<div class="alert-content flex-grow-1">
|
|
66
64
|
{%- if _heading is not empty -%}
|
|
67
65
|
<div class="alert-heading h4">{{ _heading }}</div>
|
|
@@ -75,9 +73,8 @@
|
|
|
75
73
|
type="button"
|
|
76
74
|
class="btn-close"
|
|
77
75
|
data-bs-dismiss="alert"
|
|
78
|
-
aria-label="Close"
|
|
79
|
-
|
|
76
|
+
aria-label="Close"
|
|
77
|
+
></button>
|
|
80
78
|
{%- endif -%}
|
|
81
79
|
</div>
|
|
82
|
-
|
|
83
|
-
{% endapply %}
|
|
80
|
+
{#--#}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
{% apply spaceless %}
|
|
2
|
-
|
|
3
1
|
{# Parameters:
|
|
4
2
|
- label (string) (default: '')
|
|
5
3
|
- background: (string) (default: 'primary')
|
|
@@ -13,7 +11,7 @@
|
|
|
13
11
|
- attributes (drupal attrs)
|
|
14
12
|
#}
|
|
15
13
|
|
|
16
|
-
{
|
|
14
|
+
{%- set _label = label|default('') %}
|
|
17
15
|
{% set _background = background|default('primary') %}
|
|
18
16
|
{% set _url = url|default('') %}
|
|
19
17
|
{% set _title = title|default('') %}
|
|
@@ -24,18 +22,18 @@
|
|
|
24
22
|
{% set _icon_path = icon_path|default('') %}
|
|
25
23
|
{% set _classes = ['badge'] %}
|
|
26
24
|
|
|
27
|
-
{
|
|
28
|
-
{
|
|
25
|
+
{%- if _rounded_pill %}
|
|
26
|
+
{%- set _classes = _classes|merge(['rounded-pill']) %}
|
|
29
27
|
{% endif %}
|
|
30
28
|
|
|
31
|
-
{
|
|
32
|
-
{
|
|
29
|
+
{%- if _outline %}
|
|
30
|
+
{%- set _classes = _classes|merge(['badge-outline-' ~ _background]) %}
|
|
33
31
|
{% else %}
|
|
34
|
-
{
|
|
32
|
+
{%- set _classes = _classes|merge(['text-bg-' ~ _background]) %}
|
|
35
33
|
{% endif %}
|
|
36
34
|
|
|
37
|
-
{
|
|
38
|
-
{
|
|
35
|
+
{%- if attributes is empty %}
|
|
36
|
+
{%- set attributes = create_attribute() %}
|
|
39
37
|
{% endif %}
|
|
40
38
|
|
|
41
39
|
{%- if _title is not empty -%}
|
|
@@ -44,7 +42,7 @@
|
|
|
44
42
|
|
|
45
43
|
{% set attributes = attributes.addClass(_classes) %}
|
|
46
44
|
|
|
47
|
-
{
|
|
45
|
+
{%- set _label %}
|
|
48
46
|
{%- if _assistive_text is not empty -%}
|
|
49
47
|
<span class="visually-hidden">
|
|
50
48
|
{{- _assistive_text -}}
|
|
@@ -53,11 +51,11 @@
|
|
|
53
51
|
{{- _label -}}
|
|
54
52
|
{%- if _dismissible -%}
|
|
55
53
|
<span class="icon--close" aria-hidden="true">
|
|
56
|
-
{
|
|
54
|
+
{%- include '@oe-bcl/bcl-icon/icon.html.twig' with {
|
|
57
55
|
name: "x-circle-fill",
|
|
58
56
|
size: "xs",
|
|
59
57
|
path: _icon_path,
|
|
60
|
-
} only
|
|
58
|
+
} only -%}
|
|
61
59
|
</span>
|
|
62
60
|
{%- endif -%}
|
|
63
61
|
{% endset %}
|
|
@@ -75,5 +73,3 @@
|
|
|
75
73
|
{{- _label -}}
|
|
76
74
|
</span>
|
|
77
75
|
{%- endif -%}
|
|
78
|
-
|
|
79
|
-
{% endapply %}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
{% apply spaceless %}
|
|
2
|
-
|
|
3
1
|
{# Parameters:
|
|
4
2
|
- title: (string) (default: '')
|
|
5
3
|
- title_tag: (string) (default: 'div')
|
|
@@ -16,7 +14,7 @@
|
|
|
16
14
|
- attributes (drupal attrs)
|
|
17
15
|
#}
|
|
18
16
|
|
|
19
|
-
{
|
|
17
|
+
{%- set _title = title|default('') %}
|
|
20
18
|
{% set _title_tag = title_tag|default('div') %}
|
|
21
19
|
{% set _title_link = title_link|default({}) %}
|
|
22
20
|
{% set _title_attributes = title_attributes ?: create_attribute() %}
|
|
@@ -29,68 +27,67 @@
|
|
|
29
27
|
{% set _fixed_height = fixed_height ?? false %}
|
|
30
28
|
{% set _content_classes = content_classes|default('') %}
|
|
31
29
|
|
|
32
|
-
{
|
|
30
|
+
{%- set _content_class = 'bcl-banner__content' %}
|
|
33
31
|
{% if _content_classes is not empty %}
|
|
34
|
-
{
|
|
32
|
+
{%- set _content_class = _content_class ~ " " ~ _content_classes %}
|
|
35
33
|
{% endif %}
|
|
36
34
|
|
|
37
|
-
{
|
|
35
|
+
{%- set _title_classes = ['display-6'] %}
|
|
38
36
|
{% if _description is not empty or _link is not empty %}
|
|
39
|
-
{
|
|
37
|
+
{%- set _title_classes = _title_classes|merge(['mb-3']) %}
|
|
40
38
|
{% endif %}
|
|
41
39
|
|
|
42
|
-
{
|
|
40
|
+
{%- set _title_attributes = _title_attributes.addClass(_title_classes) %}
|
|
43
41
|
|
|
44
|
-
{
|
|
42
|
+
{%- set _classes = ['bcl-banner'] %}
|
|
45
43
|
|
|
46
|
-
{
|
|
47
|
-
{
|
|
44
|
+
{%- if _shade %}
|
|
45
|
+
{%- set _classes = _classes|merge(['shade']) %}
|
|
48
46
|
{% endif %}
|
|
49
47
|
|
|
50
|
-
{
|
|
51
|
-
{
|
|
48
|
+
{%- if _image and not _shade %}
|
|
49
|
+
{%- set _classes = _classes|merge(['overlay']) %}
|
|
52
50
|
{% endif %}
|
|
53
51
|
|
|
54
|
-
{
|
|
55
|
-
{
|
|
52
|
+
{%- if _hero %}
|
|
53
|
+
{%- set _classes = _classes|merge(['hero']) %}
|
|
56
54
|
{% endif %}
|
|
57
55
|
|
|
58
|
-
{
|
|
59
|
-
{
|
|
56
|
+
{%- if _full_width %}
|
|
57
|
+
{%- set _classes = _classes|merge(['full-width']) %}
|
|
60
58
|
{% endif %}
|
|
61
59
|
|
|
62
|
-
{
|
|
63
|
-
{
|
|
60
|
+
{%- if _fixed_height %}
|
|
61
|
+
{%- set _classes = _classes|merge(['fixed-height']) %}
|
|
64
62
|
{% endif %}
|
|
65
63
|
|
|
66
|
-
{
|
|
67
|
-
{
|
|
64
|
+
{%- if attributes is empty %}
|
|
65
|
+
{%- set attributes = create_attribute() %}
|
|
68
66
|
{% endif %}
|
|
69
67
|
|
|
70
|
-
{
|
|
68
|
+
{%- set attributes = attributes.addClass(_classes) -%}
|
|
71
69
|
|
|
72
70
|
<div {{ attributes }}>
|
|
73
|
-
{
|
|
71
|
+
{%- if _image is not empty -%}
|
|
74
72
|
<div class="bcl-banner__image" style="background-image:url({{ _image }})"></div>
|
|
75
|
-
{
|
|
76
|
-
<div class="container">
|
|
73
|
+
{%- endif -%}
|
|
74
|
+
<div class="container">{# -#}
|
|
77
75
|
<div class="{{ _content_class }}">
|
|
78
|
-
{
|
|
79
|
-
{
|
|
76
|
+
{%- if _title is not empty %}
|
|
77
|
+
{%- include '@oe-bcl/bcl-heading/heading.html.twig' with {
|
|
80
78
|
title: _title,
|
|
81
79
|
title_tag: _title_tag,
|
|
82
80
|
title_link: _title_link,
|
|
83
81
|
attributes: _title_attributes,
|
|
84
82
|
} only %}
|
|
85
|
-
{
|
|
86
|
-
{
|
|
83
|
+
{%- endif %}
|
|
84
|
+
{%- if _description is not empty -%}
|
|
87
85
|
<p class="mb-4">{{ _description }}</p>
|
|
88
|
-
{
|
|
89
|
-
{
|
|
90
|
-
{
|
|
91
|
-
{
|
|
92
|
-
</div>
|
|
93
|
-
</div>
|
|
86
|
+
{%- endif %}
|
|
87
|
+
{%- if _link.path %}
|
|
88
|
+
{%- include '@oe-bcl/bcl-link/link.html.twig' with _link only %}
|
|
89
|
+
{%- endif -%}
|
|
90
|
+
</div>{# -#}
|
|
91
|
+
</div>{# -#}
|
|
94
92
|
</div>
|
|
95
|
-
|
|
96
|
-
{% endapply %}
|
|
93
|
+
{#--#}
|