@openeuropa/bcl-file 0.16.0 → 0.17.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/file.html.twig +6 -2
- package/package.json +4 -4
package/file.html.twig
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
{#
|
|
4
4
|
Parameters:
|
|
5
5
|
- title (string) (default: '')
|
|
6
|
-
- title_tag (string) (default: '
|
|
6
|
+
- title_tag (string) (default: 'h2')
|
|
7
7
|
- item_title (string) (default: '')
|
|
8
8
|
- icon (icon Object) (default: {})
|
|
9
9
|
- text (string) (default: '')
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
|
|
37
37
|
{% set _icon = icon|default({}) %}
|
|
38
38
|
{% set _title = title|default('') %}
|
|
39
|
-
{% set _title_tag = title_tag|default('
|
|
39
|
+
{% set _title_tag = title_tag|default('h2') %}
|
|
40
40
|
{% set _item_title = item_title|default('') %}
|
|
41
41
|
{% set _text = text|default('') %}
|
|
42
42
|
{% set _content = content|default('') %}
|
|
@@ -57,6 +57,10 @@
|
|
|
57
57
|
}) %}
|
|
58
58
|
{% endif %}
|
|
59
59
|
|
|
60
|
+
{% if attributes is empty %}
|
|
61
|
+
{% set attributes = create_attribute() %}
|
|
62
|
+
{% endif %}
|
|
63
|
+
|
|
60
64
|
{% if _title is not empty %}
|
|
61
65
|
{% set _title_classes = 'fw-bold mb-4' %}
|
|
62
66
|
<{{ _title_tag }} class="{{ _title_classes }}">
|
package/package.json
CHANGED
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
"name": "@openeuropa/bcl-file",
|
|
3
3
|
"author": "European Commission",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.17.0",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
8
8
|
},
|
|
9
9
|
"description": "OE - BCL file",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@openeuropa/bcl-icon": "^0.
|
|
12
|
-
"@openeuropa/bcl-link": "^0.
|
|
11
|
+
"@openeuropa/bcl-icon": "^0.17.0",
|
|
12
|
+
"@openeuropa/bcl-link": "^0.17.0"
|
|
13
13
|
},
|
|
14
14
|
"repository": {
|
|
15
15
|
"type": "git",
|
|
@@ -25,5 +25,5 @@
|
|
|
25
25
|
"design-system",
|
|
26
26
|
"twig"
|
|
27
27
|
],
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "07ff24de8a209d80750a32cd52dfe9663fabf8e2"
|
|
29
29
|
}
|