@openeuropa/bcl-theme-joinup 0.24.0 → 0.25.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/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.24.0",
5
+ "version": "0.25.0",
6
6
  "description": "OE - BCL theme joinup",
7
7
  "scripts": {
8
8
  "align-templates": "lerna --scope \"@openeuropa/bcl-twig-templates\" run prepublish",
@@ -20,18 +20,18 @@
20
20
  "update:templates": "run-s align-templates build:copy"
21
21
  },
22
22
  "devDependencies": {
23
- "@babel/core": "7.18.5",
24
- "@babel/plugin-transform-runtime": "7.18.5",
25
- "@babel/preset-env": "7.18.2",
26
- "@babel/preset-react": "7.17.12",
27
- "@ecl/resources-ec-logo": "3.3.2",
28
- "@ecl/resources-eu-logo": "3.3.2",
29
- "@ecl/resources-flag-icons": "3.3.2",
23
+ "@babel/core": "7.18.6",
24
+ "@babel/plugin-transform-runtime": "7.18.6",
25
+ "@babel/preset-env": "7.18.6",
26
+ "@babel/preset-react": "7.18.6",
27
+ "@ecl/resources-ec-logo": "3.3.3",
28
+ "@ecl/resources-eu-logo": "3.3.3",
29
+ "@ecl/resources-flag-icons": "3.3.3",
30
30
  "@fontsource/roboto": "4.5.7",
31
- "@openeuropa/bcl-bootstrap": "^0.24.0",
32
- "@openeuropa/bcl-builder": "^0.24.0",
33
- "@openeuropa/bcl-theme-default": "^0.24.0",
34
- "@openeuropa/bcl-twig-templates": "^0.24.0",
31
+ "@openeuropa/bcl-bootstrap": "^0.25.0",
32
+ "@openeuropa/bcl-builder": "^0.25.0",
33
+ "@openeuropa/bcl-theme-default": "^0.25.0",
34
+ "@openeuropa/bcl-twig-templates": "^0.25.0",
35
35
  "copyfiles": "2.4.1",
36
36
  "cross-env": "7.0.3",
37
37
  "glob": "8.0.3",
@@ -56,5 +56,5 @@
56
56
  "design-system",
57
57
  "twig"
58
58
  ],
59
- "gitHead": "a46bb6bc12771da4667516dc7b0665b00504ade2"
59
+ "gitHead": "f50c7dfeab8695bbb5c18d5f7d5304509512268a"
60
60
  }
@@ -2,6 +2,10 @@
2
2
 
3
3
  {#
4
4
  Parameters:
5
+ - title (string) (default: '')
6
+ - title_tag (string) (default: 'h2')
7
+ - title_link: (link object) (default: {})
8
+ - title_attributes: (drupal attrs)
5
9
  - id (int) (default: random(1000))
6
10
  - flush (boolean) (default: false)
7
11
  - items (array) (default: []): format: [
@@ -16,6 +20,10 @@
16
20
  - attributes (drupal attrs)
17
21
  #}
18
22
 
23
+ {% set _title = title|default('') %}
24
+ {% set _title_tag = title_tag|default('h2') %}
25
+ {% set _title_link = title_link|default({}) %}
26
+ {% set _title_attributes = title_attributes ?: create_attribute() %}
19
27
  {% set _id = id|default(random(1000)) %}
20
28
  {% set _flush = flush|default(false) %}
21
29
  {% set _items = items|default([]) %}
@@ -35,6 +43,15 @@
35
43
  <div
36
44
  {{ attributes }}
37
45
  >
46
+ {%- if _title is not empty -%}
47
+ {% include '@oe-bcl/bcl-heading/heading.html.twig' with {
48
+ title: _title,
49
+ title_tag: _title_tag,
50
+ title_link: _title_link,
51
+ attributes: _title_attributes,
52
+ } only %}
53
+ {%- endif -%}
54
+
38
55
  {% for _item in _items %}
39
56
  {% set _open_item = _open_item_id == loop.index %}
40
57
  {% set _button_classes = ['accordion-button'] %}
@@ -1,6 +1,10 @@
1
1
  {% spaceless %}
2
2
 
3
3
  {# Parameters:
4
+ - title (string) (default: '')
5
+ - title_tag (string) (default: 'h2')
6
+ - title_link: (link object) (default: {})
7
+ - title_attributes: (drupal attrs)
4
8
  - quote (string) (default: '')
5
9
  - attribution (string) (default: '')
6
10
  - cite (string) (default: '')
@@ -9,6 +13,10 @@
9
13
  - attributes (drupal attrs)
10
14
  #}
11
15
 
16
+ {% set _title = title|default('') %}
17
+ {% set _title_tag = title_tag|default('h2') %}
18
+ {% set _title_link = title_link|default({}) %}
19
+ {% set _title_attributes = title_attributes ?: create_attribute() %}
12
20
  {% set _quote = quote|default('') %}
13
21
  {% set _attribution = attribution|default('') %}
14
22
  {% set _cite = cite|default('') %}
@@ -37,6 +45,15 @@
37
45
 
38
46
  {% set attributes = attributes.addClass(_classes) %}
39
47
 
48
+ {%- if _title is not empty -%}
49
+ {% include '@oe-bcl/bcl-heading/heading.html.twig' with {
50
+ title: _title,
51
+ title_tag: _title_tag,
52
+ title_link: _title_link,
53
+ attributes: _title_attributes,
54
+ } only %}
55
+ {%- endif -%}
56
+
40
57
  <figure
41
58
  {{ attributes }}
42
59
  >
@@ -28,9 +28,10 @@
28
28
  - horizontal (boolean) (default: false)
29
29
  - horizontal_grid (object) (default: {})
30
30
  format: {
31
- left_col_classes (default: 'col-4')
32
- right_col_classes (default: 'col-8')
31
+ left_col_classes (default: 'bcl-card-start-col')
32
+ right_col_classes (default: 'col')
33
33
  gutter (default: '')
34
+ gutter (default: '') - options: ['small', 'large']
34
35
  }
35
36
  - variant (string) (default: '')
36
37
  - border_variant (string) (default: '')
@@ -63,8 +64,9 @@
63
64
  {% set _variant = variant|default('') %}
64
65
  {% set _horizontal = horizontal|default(false) %}
65
66
  {% set _horizontal_grid = horizontal_grid|default({
66
- left_col_classes: 'col-4',
67
- right_col_classes: 'col-8'
67
+ left_col_classes: 'bcl-card-start-col',
68
+ right_col_classes: 'col',
69
+ left_col_size: '',
68
70
  }) %}
69
71
  {% set _border_variant = border_variant|default('') %}
70
72
  {% set _text_color = text_color|default('') %}
@@ -170,7 +172,7 @@
170
172
  <div class='{{ _body_classes }}'>
171
173
  {% if _title is not empty %}
172
174
  {% if _title_attributes.class is empty %}
173
- {% set _title_attributes = _title_attributes.addClass('fs-5') %}
175
+ {% set _title_attributes = _title_attributes.addClass('fs-4') %}
174
176
  {% endif %}
175
177
  {% set _title_attributes = _title_attributes.addClass('card-title') %}
176
178
  {% include '@oe-bcl/bcl-heading/heading.html.twig' with {
@@ -1,7 +1,10 @@
1
1
  {% spaceless %}
2
2
 
3
3
  {# Parameters:
4
- - id (string) (default: '')
4
+ - title (string) (default: '')
5
+ - title_tag (string) (default: 'h2')
6
+ - title_link: (link object) (default: {})
7
+ - title_attributes: (drupal attrs)
5
8
  - autoplay (boolean) (default: true)
6
9
  - autoinit (boolean) (default: true)
7
10
  - dark (boolean) (default: false)
@@ -25,6 +28,10 @@
25
28
  - attributes (drupal attrs)
26
29
  #}
27
30
 
31
+ {% set _title = title|default('') %}
32
+ {% set _title_tag = title_tag|default('h2') %}
33
+ {% set _title_link = title_link|default({}) %}
34
+ {% set _title_attributes = title_attributes ?: create_attribute() %}
28
35
  {% set _id = id|default('') %}
29
36
  {% set _autoinit = autoinit ?? true %}
30
37
  {% set _autoplay = autoplay ?? true %}
@@ -39,7 +46,7 @@
39
46
  {% set _rounded_indicators = rounded_indicators|default(false) %}
40
47
  {% set _disable_touch = disable_touch|default(false) %}
41
48
 
42
- {% set _classes = ['carousel slide'] %}
49
+ {% set _classes = ['carousel', 'slide'] %}
43
50
 
44
51
  {% if _fade %}
45
52
  {% set _classes = _classes|merge(['carousel-fade']) %}
@@ -74,6 +81,15 @@
74
81
 
75
82
  {% set attributes = attributes.addClass(_classes) %}
76
83
 
84
+ {%- if _title is not empty -%}
85
+ {% include '@oe-bcl/bcl-heading/heading.html.twig' with {
86
+ title: _title,
87
+ title_tag: _title_tag,
88
+ title_link: _title_link,
89
+ attributes: _title_attributes,
90
+ } only %}
91
+ {%- endif -%}
92
+
77
93
  <div
78
94
  {{ attributes }}
79
95
  >
@@ -11,7 +11,7 @@
11
11
  - image (object)
12
12
  - image_size: (string)
13
13
  - date: (object)
14
- options: ['sm', 'md', 'lg']
14
+ options: ['sm', 'md', 'lg', 'xl']
15
15
  - content: (string)
16
16
  - badges: (array of objects of type badge)
17
17
  - links: (array of objects of type link)
@@ -63,20 +63,23 @@
63
63
  {% set _right_col_classes = 'col-md-8 col-lg-9 col-xxl-8' %}
64
64
 
65
65
  {% if _image is not empty %}
66
- {% set _left_col_classes = 'col-8 col-md-4 col-lg-3 offset-2 offset-md-0' %}
67
- {% set _right_col_classes = 'col-md-8 col-lg-9 col-xxl-8' %}
66
+ {% set _left_col_classes = 'bcl-card-start-col' %}
68
67
  {% set _body_classes = 'pt-4 pt-md-0 px-0 px-md-3 pb-0' %}
69
68
  {% if _image_size == 'lg' %}
70
- {% set _left_col_classes = 'col-md-4' %}
71
- {% set _right_col_classes = 'col-md-8' %}
69
+ {% set _left_col_classes = _left_col_classes ~ ' bcl-size-large' %}
70
+ {% set _right_col_classes = 'col-12 col-md-7 col-lg-8 col-xl-9 col-xxl-8' %}
72
71
  {% endif %}
73
72
  {% if _image_size == 'sm' %}
74
- {% set _left_col_classes = 'col-6 col-md-4 col-lg-2 offset-3 offset-md-0' %}
73
+ {% set _left_col_classes = _left_col_classes ~ ' bcl-size-small' %}
74
+ {% endif %}
75
+ {% if _image_size == 'xl' %}
76
+ {% set _left_col_classes = _left_col_classes ~ ' bcl-size-extra-large' %}
77
+ {% set _right_col_classes = 'col-12 col-lg-7 col-xl-8' %}
75
78
  {% endif %}
76
79
  {% endif %}
77
80
  {% if _date is not empty %}
78
- {% set _left_col_classes = 'col-8 col-md-3 col-lg-2 offset-4 offset-md-0' %}
79
- {% set _right_col_classes = 'col-md-9 col-lg-10 col-xxl-8' %}
81
+ {% set _left_col_classes = 'bcl-card-start-col' %}
82
+ {% set _right_col_classes = 'col-12 col-md col-xxl-9' %}
80
83
  {% endif %}
81
84
 
82
85
  {% set _horizontal_classes = {
@@ -2,37 +2,59 @@
2
2
 
3
3
  {#
4
4
  Parameters:
5
- - title: (string) (default: "")
6
- - title_tag: (string) (default: "h2")
5
+ - title: (string) (default: '')
6
+ - title_tag: (string) (default: 'h2')
7
7
  - title_link: (link object) (default: {})
8
8
  - title_attributes (drupal attrs)
9
+ - bordered (boolean) (default: '')
9
10
  - items (array) (default: []): format: [
10
11
  {
11
12
  term (object or array of object) -format: {
12
13
  icon: {} - icon object,
13
- label: ""
14
+ label: ''
14
15
  }
15
16
  definition (block or array of string)
16
17
  },
17
18
  ...
18
19
  ]
19
20
  - variant (string) (default: '')
20
- - option: ["horizontal"]
21
+ - option: ['horizontal']
21
22
  #}
22
23
 
23
24
  {% set _title = title|default('') %}
24
25
  {% set _title_tag = title_tag|default('h2') %}
25
26
  {% set _title_link = title_link|default({}) %}
27
+ {% set _bordered = bordered|default(false) %}
28
+ {% set _title_link = title_link|default({}) %}
26
29
  {% set _title_attributes = title_attributes ?: create_attribute() %}
27
30
  {% set _items = items|default([]) %}
28
31
  {% set _variant = variant|default('') %}
29
32
 
33
+ {% set _classes = ['bcl-description-list'] %}
34
+
30
35
  {% if attributes is empty %}
31
36
  {% set attributes = create_attribute() %}
32
37
  {% endif %}
33
38
 
39
+ {% set _item_classes = '' %}
40
+
34
41
  {% if _variant == 'horizontal' %}
35
- {% set attributes = attributes.addClass(["d-md-grid", "grid-3-9"]) %}
42
+ {% set _item_classes = 'd-md-grid grid-3-9' %}
43
+ {% if _bordered %}
44
+ {% set _item_classes = _item_classes ~ ' mb-2-5 pb-2-5' %}
45
+ {% else %}
46
+ {% set _item_classes = _item_classes ~ ' mb-3' %}
47
+ {% endif %}
48
+ {% else %}
49
+ {% set _item_classes = 'mb-3' %}
50
+ {% if _bordered %}
51
+ {% set _item_classes = 'mb-2-5' %}
52
+ {% set _item_classes = _item_classes ~ ' pb-2-5' %}
53
+ {% endif %}
54
+ {% endif %}
55
+
56
+ {% if _bordered %}
57
+ {% set _item_classes = _item_classes ~ ' border-bottom' %}
36
58
  {% endif %}
37
59
 
38
60
  {% if _title is not empty %}
@@ -44,101 +66,120 @@
44
66
  } only %}
45
67
  {% endif %}
46
68
 
47
- <dl
69
+ {% set attributes = attributes.addClass(_classes) %}
70
+
71
+ <div
48
72
  {{ attributes }}
49
73
  >
50
74
  {% for _item in _items %}
51
- {% if _item.term is not empty %}
52
- {% if _item.term is iterable %}
53
- {% if _variant == 'horizontal' %}
54
- <div>
55
- {% endif %}
56
- {% for _term in _item.term %}
57
- <dt
58
- {% if _variant == 'horizontal' and _term.icon is not empty %}
59
- class="d-flex"
60
- {% endif %}
61
- >
62
- {%- if _term.icon is not empty -%}
63
- {% set _icon_classes = ["me-2"] %}
64
- {% if _variant == 'horizontal' %}
65
- {% set _icon_classes = _icon_classes|merge(["mt-1"]) %}
66
- {% endif %}
67
- {% include '@oe-bcl/bcl-icon/icon.html.twig' with _term.icon|merge({
68
- attributes: create_attribute().addClass(_icon_classes)
69
- }) only %}
70
- <p class="mb-0 d-inline-block">{{ _term.label }}</p>
71
- {%- elseif _term.color is not empty -%}
72
- <div class="d-flex align-items-center">
73
- <span class="p-2 me-2 d-inline-block rounded-1 {{ _term.color }}"></span>{{- _term.label -}}
74
- </div>
75
- {%- else -%}
76
- {{- _term.label -}}
77
- {%- endif -%}
78
- </dt>
79
- {% endfor %}
75
+ {% if loop.last and _variant != 'horizontal' %}
76
+ {% set _item_classes = '' %}
77
+ {% endif %}
78
+ {% if _item.term is not empty %}
79
+ <dl
80
+ {% if _item_classes is not empty %}
81
+ class="{{ _item_classes }}"
82
+ {% endif %}
83
+ >
84
+ {% if _item.term is iterable %}
85
+ <dt>
86
+ {% for _term in _item.term %}
87
+ {%- if _item.term|length > 1 -%}
88
+ <div
89
+ {% if _variant == 'horizontal' and _term.icon is not empty %}
90
+ class="d-flex"
91
+ {% endif %}
92
+ >
93
+ {%- endif -%}
94
+ {%- if _term.icon is not empty -%}
95
+ {% set _icon_classes = ["me-2"] %}
80
96
  {% if _variant == 'horizontal' %}
81
- </div>
97
+ {% set _icon_classes = _icon_classes|merge(["mt-1"]) %}
82
98
  {% endif %}
83
- {% else %}
84
- <dt
85
- {% if _variant == 'horizontal' and _item.term.icon is not empty %}
86
- class="d-flex"
87
- {% endif %}
88
- >
89
- {%- if _item.term.icon is not empty -%}
90
- {% set _icon_classes = ["me-2"] %}
91
- {% if _variant == 'horizontal' %}
92
- {% set _icon_classes = _icon_classes|merge(["mt-1"]) %}
93
- {% endif %}
94
- {%- include '@oe-bcl/bcl-icon/icon.html.twig' with _item.term.icon|merge({
95
- attributes: create_attribute().addClass(_icon_classes)
96
- }) only -%}
97
- <p class="mb-0 d-inline-block">{{ _item.term.label }}</p>
98
- {%- elseif _item.term.color is not empty -%}
99
- <div class="d-flex align-items-center">
100
- <span class="p-2 me-2 d-inline-block rounded-1 {{ _item.term.color }}"></span>{{- _item.term.label -}}
101
- </div>
102
- {%- else -%}
103
- {{- _item.term.label -}}
104
- {%- endif -%}
105
- </dt>
99
+ {% include '@oe-bcl/bcl-icon/icon.html.twig' with _term.icon|merge({
100
+ attributes: create_attribute().addClass(_icon_classes)
101
+ }) only %}
102
+ <p class="mb-0 d-inline-block">{{ _term.label }}</p>
103
+ {%- elseif _term.color is not empty -%}
104
+ <div class="d-flex align-items-center">
105
+ <span class="p-2 me-2 d-inline-block rounded-1 {{ _term.color }}"></span>{{- _term.label -}}
106
+ </div>
107
+ {%- else -%}
108
+ {{- _term.label -}}
109
+ {%- endif -%}
110
+ {% if _item.term|length > 1 %}
111
+ </div>
112
+ {% endif %}
113
+ {% endfor %}
114
+ </dt>
115
+ {% else %}
116
+ <dt
117
+ {% if _variant == 'horizontal' and _item.term.icon is not empty %}
118
+ class="d-flex"
106
119
  {% endif %}
120
+ >
121
+ {%- if _item.term.icon is not empty -%}
122
+ {% set _icon_classes = ["me-2"] %}
123
+ {% if _variant == 'horizontal' %}
124
+ {% set _icon_classes = _icon_classes|merge(["mt-1"]) %}
125
+ {% endif %}
126
+ {%- include '@oe-bcl/bcl-icon/icon.html.twig' with _item.term.icon|merge({
127
+ attributes: create_attribute().addClass(_icon_classes)
128
+ }) only -%}
129
+ <p class="mb-0 d-inline-block">{{ _item.term.label }}</p>
130
+ {%- elseif _item.term.color is not empty -%}
131
+ <div class="d-flex align-items-center">
132
+ <span class="p-2 me-2 d-inline-block rounded-1 {{ _item.term.color }}"></span>{{- _item.term.label -}}
133
+ </div>
134
+ {%- else -%}
135
+ {{- _item.term.label -}}
136
+ {%- endif -%}
137
+ </dt>
107
138
  {% endif %}
108
- {% if _item.definition is not empty %}
109
- {% if _item.definition is iterable %}
110
- {% if _variant == 'horizontal' %}
111
- <dd>
139
+ {% endif %}
140
+ {% if _item.definition is not empty %}
141
+ {% if _item.definition is iterable %}
142
+ {% if _variant == 'horizontal' %}
143
+ <dd
144
+ {% if _bordered %}
145
+ class="mb-0"
112
146
  {% endif %}
113
- {% for _definition in _item.definition %}
114
- {% if _variant == 'horizontal' %}<div>{% else %}<dd>{% endif %}
115
- {%- if _definition.button is defined -%}
116
- {% include '@oe-bcl/bcl-button/button.html.twig' with _definition.button only %}
117
- {%- elseif _definition.link is defined %}
118
- {% include '@oe-bcl/bcl-link/link.html.twig' with _definition.link only -%}
147
+ >
148
+ {% endif %}
149
+ {% for _definition in _item.definition %}
150
+ {% if _variant == 'horizontal' %}<div>{% else %}<dd>{% endif %}
151
+ {%- if _definition.button is defined -%}
152
+ {% include '@oe-bcl/bcl-button/button.html.twig' with _definition.button only %}
153
+ {%- elseif _definition.link is defined %}
154
+ {% include '@oe-bcl/bcl-link/link.html.twig' with _definition.link only -%}
155
+ {%- else -%}
156
+ {%- if _definition.icon is defined -%}
157
+ {%- set _icon_classes = ["me-2"] -%}
158
+ {%- include '@oe-bcl/bcl-icon/icon.html.twig' with _definition.icon|merge({
159
+ attributes: create_attribute().addClass(_icon_classes)
160
+ }) only -%}
161
+ <p class="mb-0 d-inline-block">{{ _definition.label }}</p>
119
162
  {%- else -%}
120
- {%- if _definition.icon is defined -%}
121
- {%- set _icon_classes = ["me-2"] -%}
122
- {%- include '@oe-bcl/bcl-icon/icon.html.twig' with _definition.icon|merge({
123
- attributes: create_attribute().addClass(_icon_classes)
124
- }) only -%}
125
- <p class="mb-0 d-inline-block">{{ _definition.label }}</p>
126
- {%- else -%}
127
- {{- _definition.label -}}
128
- {%- endif -%}
163
+ {{- _definition.label -}}
129
164
  {%- endif -%}
130
- {% if _variant == 'horizontal' %}</div>{% else %}</dd>{% endif %}
131
- {% endfor %}
132
- {% if _variant == 'horizontal' %}
133
- </dd>
134
- {% endif %}
135
- {% else %}
136
- <dd>
137
- {%- block definition _item.definition -%}
138
- </dd>
165
+ {%- endif -%}
166
+ {% if _variant == 'horizontal' %}</div>{% else %}</dd>{% endif %}
167
+ {% endfor %}
168
+ {% if _variant == 'horizontal' %}
169
+ </dd>
170
+ {% endif %}
171
+ {% else %}
172
+ <dd
173
+ {% if _bordered %}
174
+ class="mb-0"
139
175
  {% endif %}
176
+ >
177
+ {%- block definition _item.definition -%}
178
+ </dd>
140
179
  {% endif %}
180
+ </dl>
181
+ {% endif %}
141
182
  {% endfor %}
142
- </dl>
183
+ </div>
143
184
 
144
185
  {% endspaceless %}
@@ -29,7 +29,7 @@
29
29
  {% set _title_link = title_link|default({}) %}
30
30
  {% set _title_attributes = title_attributes ?: create_attribute() %}
31
31
  {% set _variant = variant|default('default') %}
32
- {% set _css_classes = ['bcl-fact-figures', 'bcl-fact-figures--' ~ _variant] %}
32
+ {% set _classes = ['bcl-fact-figures', 'bcl-fact-figures--' ~ _variant] %}
33
33
  {% set _display_icons = display_icons ?? true %}
34
34
  {% set _items = items|default([]) %}
35
35
  {% set _grid_columns = grid_columns|default(1) %}
@@ -66,7 +66,7 @@
66
66
  {% set attributes = create_attribute() %}
67
67
  {% endif %}
68
68
 
69
- {% set attributes = attributes.addClass(_css_classes) %}
69
+ {% set attributes = attributes.addClass(_classes) %}
70
70
 
71
71
  <div {{ attributes }}>
72
72
  {% if _title is not empty %}
@@ -2,8 +2,10 @@
2
2
 
3
3
  {# Parameters:
4
4
  - with_text (boolean) (default: false)
5
- - title: (string) (default: '')
6
- - title_tag: (string) (default: 'h2')
5
+ - title (string) (default: '')
6
+ - title_tag (string) (default: 'h2')
7
+ - title_link: (link object) (default: {})
8
+ - title_attributes: (drupal attrs)
7
9
  - image: (string) (default: "")
8
10
  - poster_image: (string) (default: "")
9
11
  - content: (string) (default: "")
@@ -34,6 +36,8 @@
34
36
 
35
37
  {% set _title = title|default('') %}
36
38
  {% set _title_tag = title_tag|default('h2') %}
39
+ {% set _title_link = title_link|default({}) %}
40
+ {% set _title_attributes = title_attributes ?: create_attribute() %}
37
41
  {% set _with_text = with_text|default(false) %}
38
42
  {% set _wrapper_classes = 'bcl-featured-item' %}
39
43
  {% set _description = description|default('') %}
@@ -57,19 +61,27 @@
57
61
  {% set attributes = create_attribute() %}
58
62
  {% endif %}
59
63
 
64
+ {% if _with_text %}
65
+ {% set _title_attributes = _title_attributes.addClass(['fw-bold', 'mb-4']) %}
66
+ {% endif %}
67
+
60
68
  {% set attributes = attributes.addClass(["rounded", "overflow-hidden"]) %}
61
69
 
62
70
  {% if _with_text %}
63
71
  <div class="{{ _wrapper_classes }}">
64
-
65
- {% if _title is not empty %}
66
- {% set _title_classes = 'fw-bold mb-4' %}
67
- <{{ _title_tag }} class="{{ _title_classes }}">
68
- {{- _title -}}
69
- </{{ _title_tag }}>
72
+ <div class="row">
70
73
  {% endif %}
71
74
 
72
- <div class="row">
75
+ {%- if _title is not empty -%}
76
+ {% include '@oe-bcl/bcl-heading/heading.html.twig' with {
77
+ title: _title,
78
+ title_tag: _title_tag,
79
+ title_link: _title_link,
80
+ attributes: _title_attributes,
81
+ } only %}
82
+ {%- endif -%}
83
+
84
+ {% if _with_text %}
73
85
  <div class="{{ _col_classes }} order-{{ _alignment == "right" ? '1' : '2' }}">
74
86
  {{- _description|default('') -}}
75
87
 
@@ -56,11 +56,13 @@
56
56
  {% set _translation = translation|default({}) %}
57
57
  {% set _icon_path = icon_path|default({}) %}
58
58
 
59
+ {% set _classes = ['bcl-file'] %}
60
+
59
61
  {% if attributes is empty %}
60
62
  {% set attributes = create_attribute() %}
61
63
  {% endif %}
62
64
 
63
- {% set attributes = attributes.addClass(['bcl-file']) %}
65
+ {% set attributes = attributes.addClass(_classes) %}
64
66
 
65
67
  {% if _icon is not empty %}
66
68
  {% set _container_classes = _container_classes ~ ' ms-2-5' %}
@@ -21,6 +21,8 @@
21
21
  {% set _variant = variant|default('vertical') %}
22
22
  {% set _links = links|default([])%}
23
23
 
24
+ {% set _classes = ['bcl-links-block'] %}
25
+
24
26
  {% set _title_classes = ['pb-3', 'mb-3', 'border-bottom'] %}
25
27
 
26
28
  {% if attributes is empty %}
@@ -31,6 +33,8 @@
31
33
  {% set attributes = attributes.addClass(['bg-light', 'px-4', 'py-3', 'rounded-2']) %}
32
34
  {% endif %}
33
35
 
36
+ {% set attributes = attributes.addClass(_classes) %}
37
+
34
38
  <div
35
39
  {{ attributes }}
36
40
  >