@openeuropa/bcl-alert 0.18.0 → 0.21.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/alert.html.twig +5 -5
  2. package/package.json +2 -2
package/alert.html.twig CHANGED
@@ -6,14 +6,14 @@
6
6
  - variant (string) (default: 'primary')
7
7
  - dismissible (boolean) (default: true)
8
8
  - animated_dismiss (boolean) (default: true)
9
- - icons_path (string) (default: '')
9
+ - icon_path (string) (default: '')
10
10
  - icon_name (string) (default: '')
11
11
  #}
12
12
 
13
13
  {% set _message = message|default('') %}
14
14
  {% set _variant = variant|default('primary') %}
15
15
  {% set _heading = heading|default('') %}
16
- {% set _icons_path = icons_path|default('') %}
16
+ {% set _icon_path = icon_path|default('') %}
17
17
  {% set _dismissible = dismissible ?? true %}
18
18
  {% set _animated_dismiss = animated_dismiss ?? true %}
19
19
  {% set _icon_name = icon_name|default('') %}
@@ -44,15 +44,15 @@
44
44
  {% set attributes = attributes.addClass(_classes).setAttribute('role', 'alert') %}
45
45
 
46
46
  <div {{ attributes }}>
47
- {% if _icons_path is not empty %}
47
+ {% if _icon_path is not empty %}
48
48
  {% include '@oe-bcl/bcl-icon/icon.html.twig' with {
49
49
  name: _icon_name ?: _icon_names[_variant],
50
50
  size: 's',
51
- path: _icons_path,
51
+ path: _icon_path,
52
52
  attributes: create_attribute().addClass(['flex-shrink-0 me-3 mt-1 align-self-start']),
53
53
  } only %}
54
54
  {% endif %}
55
- <div class="alert-content">
55
+ <div class="alert-content flex-grow-1">
56
56
  {%- if _heading is not empty -%}
57
57
  <h4 class="alert-heading">{{ _heading }}</h4>
58
58
  {%- endif -%}
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.18.0",
5
+ "version": "0.21.0",
6
6
  "publishConfig": {
7
7
  "access": "public"
8
8
  },
@@ -21,5 +21,5 @@
21
21
  "design-system",
22
22
  "twig"
23
23
  ],
24
- "gitHead": "a82834df6dff563a956a79bf2899c92742dd5820"
24
+ "gitHead": "18c01b34ca76780f480c692c566dfe507d961ccf"
25
25
  }