@openeuropa/bcl-file 0.24.1 → 0.26.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.
Files changed (2) hide show
  1. package/file.html.twig +4 -2
  2. package/package.json +5 -5
package/file.html.twig CHANGED
@@ -39,7 +39,7 @@
39
39
  {# Internal properties #}
40
40
 
41
41
  {% set _icon = icon|default({}) %}
42
- {% set _icon_inline = icon_inline|default(true) %}
42
+ {% set _icon_inline = icon_inline ?? true %}
43
43
  {% set _title = title|default('') %}
44
44
  {% set _title_tag = title_tag|default('h2') %}
45
45
  {% set _title_link = title_link|default({}) %}
@@ -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' %}
package/package.json CHANGED
@@ -2,15 +2,15 @@
2
2
  "name": "@openeuropa/bcl-file",
3
3
  "author": "European Commission",
4
4
  "license": "EUPL-1.2",
5
- "version": "0.24.1",
5
+ "version": "0.26.0",
6
6
  "publishConfig": {
7
7
  "access": "public"
8
8
  },
9
9
  "description": "OE - BCL file",
10
10
  "dependencies": {
11
- "@openeuropa/bcl-heading": "^0.24.1",
12
- "@openeuropa/bcl-icon": "^0.24.1",
13
- "@openeuropa/bcl-link": "^0.24.1"
11
+ "@openeuropa/bcl-heading": "^0.26.0",
12
+ "@openeuropa/bcl-icon": "^0.26.0",
13
+ "@openeuropa/bcl-link": "^0.26.0"
14
14
  },
15
15
  "repository": {
16
16
  "type": "git",
@@ -26,5 +26,5 @@
26
26
  "design-system",
27
27
  "twig"
28
28
  ],
29
- "gitHead": "3ebebdea0c76a5a8df03abbd13873956a1e4837a"
29
+ "gitHead": "94d89cc379780cfce06178959194b3bc1b4c5eda"
30
30
  }