@openeuropa/bcl-modal 1.10.8 → 1.10.9
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/modal.html.twig +4 -3
- package/package.json +2 -2
package/modal.html.twig
CHANGED
|
@@ -7,7 +7,8 @@
|
|
|
7
7
|
- fullscreen_responsive (string) (default: '')
|
|
8
8
|
options: sm, md, lg, xl, xxl
|
|
9
9
|
- static_backdrop (boolean) (default: false)
|
|
10
|
-
-
|
|
10
|
+
- vertically_centered (boolean) (default: false)
|
|
11
|
+
- verticaly_centered (boolean) (default: false) // deprecated typo
|
|
11
12
|
- scrollable (boolean) (default: false)
|
|
12
13
|
- header (block) (default: '')
|
|
13
14
|
- messages (block) (default: '')
|
|
@@ -29,7 +30,7 @@
|
|
|
29
30
|
{% set _id = id|default('modal-' ~ random(10000)) %}
|
|
30
31
|
{% set _fullscreen_responsive = fullscreen_responsive|default('') %}
|
|
31
32
|
{% set _static_backdrop = static_backdrop ?? false %}
|
|
32
|
-
{% set
|
|
33
|
+
{% set _vertically_centered = vertically_centered ?? verticaly_centered ?? false %}
|
|
33
34
|
{% set _scrollable = scrollable ?? false %}
|
|
34
35
|
{% set _header = header|default('') %}
|
|
35
36
|
{% set _header_attributes = header_attributes ?: create_attribute() %}
|
|
@@ -63,7 +64,7 @@
|
|
|
63
64
|
<div class="modal-dialog
|
|
64
65
|
{{- _size ? ' modal-' ~ size -}}
|
|
65
66
|
{{- _fullscreen_responsive ? ' modal-fullscreen-' ~ _fullscreen_responsive ~ '-down' -}}
|
|
66
|
-
{{-
|
|
67
|
+
{{- _vertically_centered ? ' modal-dialog-centered' -}}
|
|
67
68
|
{{- _scrollable ? ' modal-dialog-scrollable' -}}"
|
|
68
69
|
>
|
|
69
70
|
<div class="modal-content">
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@openeuropa/bcl-modal",
|
|
3
3
|
"author": "European Commission",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
|
-
"version": "1.10.
|
|
5
|
+
"version": "1.10.9",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
8
8
|
},
|
|
@@ -21,5 +21,5 @@
|
|
|
21
21
|
"design-system",
|
|
22
22
|
"twig"
|
|
23
23
|
],
|
|
24
|
-
"gitHead": "
|
|
24
|
+
"gitHead": "cb9864341bfc98404071520d61568bd18e17e1fe"
|
|
25
25
|
}
|