@openeuropa/bcl-alert 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.
Files changed (2) hide show
  1. package/alert.html.twig +18 -21
  2. package/package.json +2 -2
package/alert.html.twig CHANGED
@@ -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
- {% set _message = message|default('') %}
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
- {% set _classes = ['alert', 'alert-' ~ _variant|e('html_attr'), 'd-flex', 'align-items-center'] %}
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
- {% if _dismissible %}
36
- {% set _classes = _classes|merge(['alert-dismissible']) %}
33
+ {%- if _dismissible %}
34
+ {%- set _classes = _classes|merge(['alert-dismissible']) %}
37
35
  {% endif %}
38
36
  {% if _animated_dismiss %}
39
- {% set _classes = _classes|merge(['fade', 'show']) %}
37
+ {%- set _classes = _classes|merge(['fade', 'show']) %}
40
38
  {% endif %}
41
39
 
42
- {% set _classes = _classes|merge(['text-dark']) %}
40
+ {%- set _classes = _classes|merge(['text-dark']) %}
43
41
 
44
- {% set _icon_classes = ['flex-shrink-0 me-3 mt-1 align-self-start' ] %}
42
+ {%- set _icon_classes = ['flex-shrink-0 me-3 mt-1 align-self-start' ] %}
45
43
 
46
- {% if _variant != 'light' %}
47
- {% set _icon_classes = _icon_classes|merge(['text-' ~ _variant]) %}
44
+ {%- if _variant != 'light' %}
45
+ {%- set _icon_classes = _icon_classes|merge(['text-' ~ _variant]) %}
48
46
  {% endif %}
49
47
 
50
- {% if attributes is empty %}
51
- {% set attributes = create_attribute() %}
48
+ {%- if attributes is empty %}
49
+ {%- set attributes = create_attribute() %}
52
50
  {% endif %}
53
51
 
54
- {% set attributes = attributes.addClass(_classes).setAttribute('role', 'alert') %}
52
+ {%- set attributes = attributes.addClass(_classes).setAttribute('role', 'alert') -%}
55
53
 
56
54
  <div {{ attributes }}>
57
- {% if _icon_path is not empty %}
58
- {% include '@oe-bcl/bcl-icon/icon.html.twig' with {
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
- </button>
76
+ aria-label="Close"
77
+ ></button>
80
78
  {%- endif -%}
81
79
  </div>
82
-
83
- {% endapply %}
80
+ {#--#}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@openeuropa/bcl-alert",
3
3
  "author": "European Commission",
4
4
  "license": "EUPL-1.2",
5
- "version": "0.4298.202511051800",
5
+ "version": "0.4360.202601141610",
6
6
  "publishConfig": {
7
7
  "access": "public"
8
8
  },
@@ -21,5 +21,5 @@
21
21
  "design-system",
22
22
  "twig"
23
23
  ],
24
- "gitHead": "cf21a1c538fac191785bb5f86c4d78d5b3b25d4c"
24
+ "gitHead": "2caf9255f88587416f6e83e572a1f20e4cf206f5"
25
25
  }