@openeuropa/bcl-theme-joinup 1.10.1 → 1.10.3

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/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.10.1",
5
+ "version": "1.10.3",
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": "npm-run-all -s align-templates build:copy"
21
21
  },
22
22
  "devDependencies": {
23
- "@babel/core": "7.26.9",
24
- "@babel/plugin-transform-runtime": "7.26.9",
25
- "@babel/preset-env": "7.26.9",
26
- "@babel/preset-react": "7.26.3",
23
+ "@babel/core": "7.27.4",
24
+ "@babel/plugin-transform-runtime": "7.27.4",
25
+ "@babel/preset-env": "7.27.2",
26
+ "@babel/preset-react": "7.27.1",
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": "5.1.1",
31
- "@openeuropa/bcl-bootstrap": "^1.10.1",
32
- "@openeuropa/bcl-builder": "^1.10.1",
33
- "@openeuropa/bcl-theme-default": "^1.10.1",
34
- "@openeuropa/bcl-twig-templates": "^1.10.1",
31
+ "@openeuropa/bcl-bootstrap": "^1.10.3",
32
+ "@openeuropa/bcl-builder": "^1.10.3",
33
+ "@openeuropa/bcl-theme-default": "^1.10.3",
34
+ "@openeuropa/bcl-twig-templates": "^1.10.3",
35
35
  "@rollup/plugin-replace": "6.0.2",
36
36
  "copyfiles": "2.4.1",
37
37
  "cross-env": "7.0.3",
@@ -57,5 +57,5 @@
57
57
  "design-system",
58
58
  "twig"
59
59
  ],
60
- "gitHead": "6c77dfb1e65950872e806cd0acb14023c279b934"
60
+ "gitHead": "b8331832899a57361f44b8a5e3a6c82d0218532f"
61
61
  }
@@ -9,6 +9,7 @@
9
9
  - end_day (integer) (default: '')
10
10
  - end_month (string) (default: '')
11
11
  - end_year (integer) (default: '')
12
+ - icon_path (string) (default: '')
12
13
  #}
13
14
 
14
15
  {% set _day = day|default('') %}
@@ -18,6 +19,7 @@
18
19
  {% set _end_day = end_day|default('') %}
19
20
  {% set _end_month = end_month|default('') %}
20
21
  {% set _end_year = end_year|default('') %}
22
+ {% set _icon_path = icon_path|default('') %}
21
23
 
22
24
  {% set _classes = [
23
25
  'bcl-date-block',
@@ -42,23 +44,37 @@
42
44
  {% endif %}
43
45
 
44
46
  <time {{ attributes }}>
45
- <span class="d-flex flex-column pt-2">
46
- <span class="d-flex flex-column align-item-center justify-content-center bg-white border border-bottom-0 w-100 h-100 fs-5 text-uppercase">
47
- <span class="d-block">{{- _day ~ ' ' ~ _month ~ ((_end_day or _end_month) ? ' - ' ) -}}</span>
48
- {%- if _end_day is not empty %}
49
- {{- _end_day -}}
50
- {% endif -%}
51
- {%- if _end_month is not empty %}
52
- {{- ' ' ~ _end_month -}}
53
- {% endif -%}
54
- </span>
55
- <span class="bg-lighter border w-100 rounded-bottom py-1">
56
- {{- _year -}}
47
+ <div class="d-flex flex-column pt-2">
48
+ <div class="d-flex align-item-center bg-white border border-bottom-0 w-100 h-100 text-uppercase justify-content-center gap-2">
49
+ <div class="d-flex flex-column align-item-center justify-content-center">
50
+ <div class="date-month lh-1">{{- _month -}}</div>
51
+ <div class="date-day fw-bold fs-4 lh-1">{{- _day -}}</div>
52
+ </div>
53
+ {% if _end_day or _end_month %}
54
+ <div class="d-flex flex-column align-item-center justify-content-center">
55
+ {%- include '@oe-bcl/bcl-icon/icon.html.twig' with {
56
+ name: "chevron-right",
57
+ size: "xs",
58
+ path: _icon_path,
59
+ } only -%}
60
+ </div>
61
+ <div class="d-flex flex-column align-item-center justify-content-center">
62
+ {%- if _end_month is not empty %}
63
+ <div class="date-month lh-1">{{- _end_month -}}</div>
64
+ {% endif -%}
65
+ {%- if _end_day is not empty %}
66
+ <div class="date-day fw-bold fs-4 lh-1">{{- _end_day -}}</div>
67
+ {% endif -%}
68
+ </div>
69
+ {% endif %}
70
+ </div>
71
+ <div class="bg-lighter border w-100 rounded-bottom py-1 d-flex gap-4 justify-content-center">
72
+ <div class="date-year year-start">{{- _year -}}</div>
57
73
  {%- if _end_year is not empty -%}
58
- {{ ' - ' ~ _end_year }}
74
+ <div class="date-year year-end">{{ _end_year }}</div>
59
75
  {%- endif -%}
60
- </span>
61
- </span>
76
+ </div>
77
+ </div>
62
78
  </time>
63
79
 
64
80
  {% endapply %}
@@ -29,8 +29,13 @@ Parameters:
29
29
  {% endif %}
30
30
 
31
31
  {% set attributes = attributes.addClass(['bcl-inpage-navigation', 'position-sticky']).setAttribute('id', _id) %}
32
- {% set title_attributes = _title_attributes.addClass('mb-0') %}
33
- {% set _title_content %}
32
+
33
+ {% if not attributes.hasAttribute('aria-label') and not attributes.hasAttribute('aria-labelledby') %}
34
+ {% set attributes = attributes.setAttribute('aria-labelledby', _dropdown_id) %}
35
+ {% endif %}
36
+
37
+ {% set title_attributes = _title_attributes.addClass(['mb-0', 'd-none', 'd-md-block']) %}
38
+ {% set _button_content %}
34
39
  {{ _title }}
35
40
  {%- include '@oe-bcl/bcl-icon/icon.html.twig' with {
36
41
  name: 'chevron-down',
@@ -45,21 +50,25 @@ Parameters:
45
50
  {% set _classes = _classes|merge(['dynamic-active']) %}
46
51
  {% endif %}
47
52
 
48
- <nav {{ attributes.addClass(_classes) }}>
53
+ <nav{{ attributes.addClass(_classes) }}>
49
54
  {% set trigger_attributes = create_attribute()
50
55
  .setAttribute('aria-expanded', 'false')
51
56
  .setAttribute('type', 'button')
52
57
  .setAttribute('id', _dropdown_id)
53
58
  .setAttribute('data-bs-toggle', 'dropdown')
54
- .addClass(['dropdown-toggle']) %}
59
+ .addClass(['dropdown-toggle', 'h2', 'd-md-none']) %}
60
+ {% include '@oe-bcl/bcl-button/button.html.twig' with {
61
+ label: _button_content,
62
+ clean_class: true,
63
+ attributes: trigger_attributes,
64
+ } only %}
55
65
  {% include '@oe-bcl/bcl-heading/heading.html.twig' with {
56
- title: _title_content,
66
+ title: _title,
57
67
  title_tag: _title_tag,
58
68
  title_link: _title_link,
59
- attributes: _title_attributes
60
- .merge(trigger_attributes),
69
+ attributes: _title_attributes,
61
70
  } only %}
62
- <div class="dropdown-menu" aria-labelledby="{{ _dropdown_id }}">
71
+ <div class="dropdown-menu">
63
72
  {% include '@oe-bcl/bcl-navigation/navigation.html.twig' with {
64
73
  'pills': true,
65
74
  'vertical': true,