@openeuropa/bcl-theme-joinup 1.2.0 → 1.2.2
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/css/oe-bcl-joinup.css +22 -14
- package/css/oe-bcl-joinup.css.map +1 -1
- package/css/oe-bcl-joinup.min.css +1 -1
- package/css/oe-bcl-joinup.min.css.map +1 -1
- package/js/oe-bcl-joinup.bundle.js +0 -3
- package/js/oe-bcl-joinup.bundle.js.map +1 -1
- package/js/oe-bcl-joinup.bundle.min.js +1 -1
- package/js/oe-bcl-joinup.bundle.min.js.map +1 -1
- package/js/oe-bcl-joinup.esm.js +0 -3
- package/js/oe-bcl-joinup.esm.js.map +1 -1
- package/js/oe-bcl-joinup.esm.min.js +1 -1
- package/js/oe-bcl-joinup.esm.min.js.map +1 -1
- package/js/oe-bcl-joinup.umd.js +0 -3
- package/js/oe-bcl-joinup.umd.js.map +1 -1
- package/js/oe-bcl-joinup.umd.min.js +1 -1
- package/js/oe-bcl-joinup.umd.min.js.map +1 -1
- package/package.json +10 -10
- package/templates/bcl-banner/banner.html.twig +23 -7
- package/templates/bcl-offcanvas/offcanvas.html.twig +2 -2
- package/icons/world-flags/1x1/ea.svg +0 -547
- package/icons/world-flags/4x3/ea.svg +0 -544
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@openeuropa/bcl-theme-joinup",
|
|
3
3
|
"author": "European Commission",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
|
-
"version": "1.2.
|
|
5
|
+
"version": "1.2.2",
|
|
6
6
|
"description": "OE - BCL theme joinup",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"align-templates": "lerna --scope \"@openeuropa/bcl-twig-templates\" run prepublish",
|
|
@@ -20,18 +20,18 @@
|
|
|
20
20
|
"update:templates": "run-s align-templates build:copy"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@babel/core": "7.
|
|
24
|
-
"@babel/plugin-transform-runtime": "7.
|
|
25
|
-
"@babel/preset-env": "7.
|
|
26
|
-
"@babel/preset-react": "7.
|
|
23
|
+
"@babel/core": "7.24.7",
|
|
24
|
+
"@babel/plugin-transform-runtime": "7.24.7",
|
|
25
|
+
"@babel/preset-env": "7.24.7",
|
|
26
|
+
"@babel/preset-react": "7.24.7",
|
|
27
27
|
"@ecl/resources-ec-logo": "3.7.1",
|
|
28
28
|
"@ecl/resources-eu-logo": "3.7.1",
|
|
29
29
|
"@ecl/resources-flag-icons": "3.7.1",
|
|
30
30
|
"@fontsource/roboto": "4.5.8",
|
|
31
|
-
"@openeuropa/bcl-bootstrap": "^1.2.
|
|
32
|
-
"@openeuropa/bcl-builder": "^1.2.
|
|
33
|
-
"@openeuropa/bcl-theme-default": "^1.2.
|
|
34
|
-
"@openeuropa/bcl-twig-templates": "^1.2.
|
|
31
|
+
"@openeuropa/bcl-bootstrap": "^1.2.2",
|
|
32
|
+
"@openeuropa/bcl-builder": "^1.2.2",
|
|
33
|
+
"@openeuropa/bcl-theme-default": "^1.2.2",
|
|
34
|
+
"@openeuropa/bcl-twig-templates": "^1.2.2",
|
|
35
35
|
"copyfiles": "2.4.1",
|
|
36
36
|
"cross-env": "7.0.3",
|
|
37
37
|
"flag-icons": "6.9.2",
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"design-system",
|
|
57
57
|
"twig"
|
|
58
58
|
],
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "03e3f25dcc61e449566c32a78213363e7d18afd0"
|
|
60
60
|
}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
- shade: (boolean) (default: false)
|
|
12
12
|
- hero: (boolean) (default: false)
|
|
13
13
|
- full_width: (boolean) (default: false)
|
|
14
|
+
- fixed_height: (boolean) (default: false)
|
|
14
15
|
- content_classes: (string) (default: '')
|
|
15
16
|
- attributes (drupal attrs)
|
|
16
17
|
#}
|
|
@@ -25,6 +26,7 @@
|
|
|
25
26
|
{% set _shade = shade ?? false %}
|
|
26
27
|
{% set _hero = hero ?? false %}
|
|
27
28
|
{% set _full_width = full_width ?? false %}
|
|
29
|
+
{% set _fixed_height = fixed_height ?? false %}
|
|
28
30
|
{% set _content_classes = content_classes|default('') %}
|
|
29
31
|
|
|
30
32
|
{% set _content_class = 'bcl-banner__content' %}
|
|
@@ -39,13 +41,27 @@
|
|
|
39
41
|
|
|
40
42
|
{% set _title_attributes = _title_attributes.addClass(_title_classes) %}
|
|
41
43
|
|
|
42
|
-
{% set _classes = [
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
44
|
+
{% set _classes = ['bcl-banner'] %}
|
|
45
|
+
|
|
46
|
+
{% if _shade %}
|
|
47
|
+
{% set _classes = _classes|merge(['shade']) %}
|
|
48
|
+
{% endif %}
|
|
49
|
+
|
|
50
|
+
{% if _image and not _shade %}
|
|
51
|
+
{% set _classes = _classes|merge(['overlay']) %}
|
|
52
|
+
{% endif %}
|
|
53
|
+
|
|
54
|
+
{% if _hero %}
|
|
55
|
+
{% set _classes = _classes|merge(['hero']) %}
|
|
56
|
+
{% endif %}
|
|
57
|
+
|
|
58
|
+
{% if _full_width %}
|
|
59
|
+
{% set _classes = _classes|merge(['full-width']) %}
|
|
60
|
+
{% endif %}
|
|
61
|
+
|
|
62
|
+
{% if _fixed_height %}
|
|
63
|
+
{% set _classes = _classes|merge(['fixed-height']) %}
|
|
64
|
+
{% endif %}
|
|
49
65
|
|
|
50
66
|
{% if attributes is empty %}
|
|
51
67
|
{% set attributes = create_attribute() %}
|
|
@@ -66,11 +66,11 @@
|
|
|
66
66
|
{% endif %}
|
|
67
67
|
|
|
68
68
|
{% if _with_body_scroll %}
|
|
69
|
-
{% set attributes = attributes.setAttribute('data-bs-scroll', true) %}
|
|
69
|
+
{% set attributes = attributes.setAttribute('data-bs-scroll', 'true') %}
|
|
70
70
|
{% endif %}
|
|
71
71
|
|
|
72
72
|
{% if not _with_backdrop %}
|
|
73
|
-
{% set attributes = attributes.setAttribute('data-bs-backdrop', false) %}
|
|
73
|
+
{% set attributes = attributes.setAttribute('data-bs-backdrop', 'false') %}
|
|
74
74
|
{% endif %}
|
|
75
75
|
|
|
76
76
|
{% set attributes = attributes.setAttribute('tabindex', '-1').addClass(_classes) %}
|