@openeuropa/bcl-theme-default 0.16.0 → 0.17.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 (43) hide show
  1. package/css/oe-bcl-default.css +77 -0
  2. package/css/oe-bcl-default.css.map +1 -1
  3. package/css/oe-bcl-default.min.css +1 -1
  4. package/css/oe-bcl-default.min.css.map +1 -1
  5. package/icons/bcl-default-icons.svg +1 -0
  6. package/package.json +5 -5
  7. package/src/scss/_header.scss +18 -0
  8. package/src/scss/oe-bcl-default.scss +1 -0
  9. package/templates/bcl-accordion/accordion.html.twig +9 -0
  10. package/templates/bcl-alert/alert.html.twig +4 -0
  11. package/templates/bcl-banner/banner.html.twig +5 -0
  12. package/templates/bcl-base-templates/content-type.html.twig +4 -0
  13. package/templates/bcl-blockquote/blockquote.html.twig +4 -0
  14. package/templates/bcl-breadcrumb/breadcrumb.html.twig +4 -0
  15. package/templates/bcl-button/button.html.twig +8 -2
  16. package/templates/bcl-button-group/button-group.html.twig +4 -0
  17. package/templates/bcl-card/card.html.twig +4 -0
  18. package/templates/bcl-card-layout/card-layout.html.twig +4 -0
  19. package/templates/bcl-carousel/carousel.html.twig +4 -0
  20. package/templates/bcl-content-banner/content-banner.html.twig +4 -0
  21. package/templates/bcl-date-block/date-block.html.twig +4 -0
  22. package/templates/bcl-description-list/description-list.html.twig +6 -2
  23. package/templates/bcl-fact-figures/fact-figures.html.twig +6 -2
  24. package/templates/bcl-featured-media/featured-media.html.twig +6 -2
  25. package/templates/bcl-file/file.html.twig +6 -2
  26. package/templates/bcl-footer/footer.html.twig +1 -0
  27. package/templates/bcl-form/form.html.twig +4 -0
  28. package/templates/bcl-inpage-navigation/inpage-navigation.html.twig +5 -0
  29. package/templates/bcl-links-block/links-block.html.twig +2 -2
  30. package/templates/bcl-list-group/list-group.html.twig +6 -0
  31. package/templates/bcl-listing/listing.html.twig +7 -2
  32. package/templates/bcl-offcanvas/offcanvas.html.twig +4 -0
  33. package/templates/bcl-pagination/pagination.html.twig +5 -1
  34. package/templates/bcl-placeholder/placeholder.html.twig +43 -0
  35. package/templates/bcl-progress/progress.html.twig +4 -0
  36. package/templates/bcl-recent-activities/recent-activities.html.twig +4 -0
  37. package/templates/bcl-search/search.html.twig +15 -0
  38. package/templates/bcl-search-form/search-form.html.twig +52 -0
  39. package/templates/bcl-select/select.html.twig +6 -0
  40. package/templates/bcl-table/table.html.twig +4 -0
  41. package/templates/bcl-timeline/timeline.html.twig +6 -2
  42. package/templates/bcl-toast/toasts.html.twig +4 -0
  43. package/templates/bcl-user/user-view-compact.html.twig +5 -1
@@ -2,6 +2,7 @@
2
2
 
3
3
  {#
4
4
  Parameters:
5
+ - "id" (string) (default: '')
5
6
  - "label" (string) (default: '')
6
7
  - "hidden_label" (boolean) (default: false)
7
8
  - "helper_text" (string) (default: '')
@@ -18,6 +19,7 @@
18
19
  #}
19
20
 
20
21
  {% set _classes = ['form-select'] %}
22
+ {% set _id = id|default('') %}
21
23
  {% set _disabled = disabled|default(false) %}
22
24
  {% set _options = options|default([]) %}
23
25
  {% set _aria_label = aria_label|default('') %}
@@ -55,6 +57,10 @@
55
57
  {% set attributes = attributes.setAttribute('aria-label', _aria_label) %}
56
58
  {% endif %}
57
59
 
60
+ {% if _id is not empty %}
61
+ {% set attributes = attributes.setAttribute('id', _id) %}
62
+ {% endif %}
63
+
58
64
  {% if _disabled %}
59
65
  {% set attributes = attributes.setAttribute('disabled', true) %}
60
66
  {% endif %}
@@ -81,6 +81,10 @@
81
81
  {% set _classes = _classes|merge(['table-borderless']) %}
82
82
  {% endif %}
83
83
 
84
+ {% if attributes is empty %}
85
+ {% set attributes = create_attribute() %}
86
+ {% endif %}
87
+
84
88
  {% set attributes = attributes.addClass(_classes) %}
85
89
 
86
90
  {% if _table_responsive is not empty %}
@@ -9,7 +9,7 @@ Parameters:
9
9
  - "from": (integer) (default: items.length) Item index after which to start hiding timeline items
10
10
  - "to": (integer) (default: items.length) Item index after which to resume displaying timeline items
11
11
  - title: (string) (default: "")
12
- - title_tag: (string) (default: "h4")
12
+ - title_tag: (string) (default: "h2")
13
13
  - "items" (array) (default: []):
14
14
  - "id": (string) (default: '')
15
15
  - "label": (string) (default: '')
@@ -22,7 +22,7 @@ Parameters:
22
22
 
23
23
  {% set _id = id|default(random(1000)) %}
24
24
  {% set _title = title|default('') %}
25
- {% set _title_tag = title_tag|default('h4') %}
25
+ {% set _title_tag = title_tag|default('h2') %}
26
26
  {% set _items = items|default([]) %}
27
27
  {% set _icons_path = icons_path|default('') %}
28
28
  {% set _toggle_collapsed = toggle_collapsed|default('') %}
@@ -31,6 +31,10 @@ Parameters:
31
31
  {% set _hide_to = hide.to|default(items|length) %}
32
32
  {% set _toggler = false %}
33
33
 
34
+ {% if attributes is empty %}
35
+ {% set attributes = create_attribute() %}
36
+ {% endif %}
37
+
34
38
  {% set attributes = attributes.addClass('bcl-timeline') %}
35
39
 
36
40
  {# Internal logic - Process properties #}
@@ -32,6 +32,10 @@
32
32
  {% set _container_classes = _container_classes ~ ' ' ~ container_classes %}
33
33
  {% endif %}
34
34
 
35
+ {% if attributes is empty %}
36
+ {% set attributes = create_attribute() %}
37
+ {% endif %}
38
+
35
39
  {# wrapper #}
36
40
  {% if _with_wrapper %}
37
41
  {% set attributes = attributes.setAttribute('aria-atomic', "true") %}
@@ -12,7 +12,11 @@
12
12
  - infos (array of strings) (default: [])
13
13
  #}
14
14
 
15
- {% set attributes = create_attribute().addClass(["d-flex", "mb-3"]) %}
15
+ {% if attributes is empty %}
16
+ {% set attributes = create_attribute() %}
17
+ {% endif %}
18
+
19
+ {% set attributes = attributes.addClass(["d-flex", "mb-3"]) %}
16
20
 
17
21
  <div
18
22
  {{ attributes }}