@openeuropa/bcl-twig-templates 0.23.0 → 0.24.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 (51) hide show
  1. package/package.json +65 -64
  2. package/templates/bcl-accordion/accordion.html.twig +4 -5
  3. package/templates/bcl-alert/alert.html.twig +5 -3
  4. package/templates/bcl-badge/badge.html.twig +7 -5
  5. package/templates/bcl-banner/banner.html.twig +5 -5
  6. package/templates/bcl-base-templates/content-type.html.twig +5 -0
  7. package/templates/bcl-base-templates/listing-page.html.twig +2 -0
  8. package/templates/bcl-blockquote/blockquote.html.twig +3 -1
  9. package/templates/bcl-breadcrumb/breadcrumb.html.twig +3 -1
  10. package/templates/bcl-button/button.html.twig +6 -4
  11. package/templates/bcl-button-group/button-group.html.twig +4 -3
  12. package/templates/bcl-card/card.html.twig +5 -9
  13. package/templates/bcl-card-layout/card-layout.html.twig +3 -1
  14. package/templates/bcl-carousel/carousel.html.twig +10 -8
  15. package/templates/bcl-content-banner/content-banner.html.twig +14 -11
  16. package/templates/bcl-dropdown/dropdown.html.twig +3 -1
  17. package/templates/bcl-fact-figures/fact-figures.html.twig +4 -2
  18. package/templates/bcl-file/file.html.twig +43 -39
  19. package/templates/bcl-footer/footer.html.twig +2 -2
  20. package/templates/bcl-form/form.html.twig +2 -4
  21. package/templates/bcl-form-input/form-input.html.twig +25 -21
  22. package/templates/bcl-gallery/gallery.html.twig +5 -5
  23. package/templates/bcl-glossary/glossary-detail.html.twig +43 -0
  24. package/templates/bcl-glossary/glossary-listing.html.twig +22 -0
  25. package/templates/bcl-header/header.html.twig +11 -9
  26. package/templates/bcl-heading/heading.html.twig +1 -1
  27. package/templates/bcl-icon/icon.html.twig +3 -2
  28. package/templates/bcl-inpage-navigation/inpage-navigation.html.twig +19 -30
  29. package/templates/bcl-language-list/language-list-grid.html.twig +1 -1
  30. package/templates/bcl-link/link.html.twig +6 -4
  31. package/templates/bcl-links-block/links-block.html.twig +17 -16
  32. package/templates/bcl-list-group/list-group.html.twig +3 -1
  33. package/templates/bcl-listing/listing.html.twig +8 -6
  34. package/templates/bcl-modal/modal.html.twig +12 -3
  35. package/templates/bcl-navbar/navbar.html.twig +4 -1
  36. package/templates/bcl-navigation/navigation.html.twig +3 -1
  37. package/templates/bcl-offcanvas/offcanvas.html.twig +8 -7
  38. package/templates/bcl-pagination/pagination.html.twig +10 -4
  39. package/templates/bcl-person/person.html.twig +0 -13
  40. package/templates/bcl-placeholder/placeholder.html.twig +4 -3
  41. package/templates/bcl-progress/progress.html.twig +2 -0
  42. package/templates/bcl-project-status/project-status.html.twig +2 -0
  43. package/templates/bcl-search-form/search-form.html.twig +5 -4
  44. package/templates/bcl-select/select.html.twig +18 -17
  45. package/templates/bcl-spinner/spinner.html.twig +2 -0
  46. package/templates/bcl-subscription-block/subscription-block.html.twig +1 -1
  47. package/templates/bcl-table/table.html.twig +3 -1
  48. package/templates/bcl-textarea/textarea.html.twig +22 -19
  49. package/templates/bcl-timeline/timeline.html.twig +17 -14
  50. package/templates/bcl-toast/toasts.html.twig +15 -15
  51. package/templates/bcl-user/user.html.twig +10 -2
package/package.json CHANGED
@@ -2,74 +2,75 @@
2
2
  "name": "@openeuropa/bcl-twig-templates",
3
3
  "author": "European Commission",
4
4
  "license": "EUPL-1.2",
5
- "version": "0.23.0",
5
+ "version": "0.24.0",
6
6
  "description": "OE Bcl Twig Templates",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },
10
10
  "devDependencies": {
11
- "@openeuropa/bcl-accordion": "^0.23.0",
12
- "@openeuropa/bcl-alert": "^0.23.0",
13
- "@openeuropa/bcl-badge": "^0.23.0",
14
- "@openeuropa/bcl-banner": "^0.23.0",
15
- "@openeuropa/bcl-base-templates": "^0.23.0",
16
- "@openeuropa/bcl-blockquote": "^0.23.0",
17
- "@openeuropa/bcl-breadcrumb": "^0.23.0",
18
- "@openeuropa/bcl-button": "^0.23.0",
19
- "@openeuropa/bcl-button-group": "^0.23.0",
20
- "@openeuropa/bcl-card": "^0.23.0",
21
- "@openeuropa/bcl-card-layout": "^0.23.0",
22
- "@openeuropa/bcl-carousel": "^0.23.0",
23
- "@openeuropa/bcl-contact-form": "^0.23.0",
24
- "@openeuropa/bcl-content-banner": "^0.23.0",
25
- "@openeuropa/bcl-date-block": "^0.23.0",
26
- "@openeuropa/bcl-description-list": "^0.23.0",
27
- "@openeuropa/bcl-dropdown": "^0.23.0",
28
- "@openeuropa/bcl-event": "^0.23.0",
29
- "@openeuropa/bcl-fact-figures": "^0.23.0",
30
- "@openeuropa/bcl-featured-media": "^0.23.0",
31
- "@openeuropa/bcl-file": "^0.23.0",
32
- "@openeuropa/bcl-footer": "^0.23.0",
33
- "@openeuropa/bcl-form": "^0.23.0",
34
- "@openeuropa/bcl-form-input": "^0.23.0",
35
- "@openeuropa/bcl-gallery": "^0.23.0",
36
- "@openeuropa/bcl-group": "^0.23.0",
37
- "@openeuropa/bcl-header": "^0.23.0",
38
- "@openeuropa/bcl-heading": "^0.23.0",
39
- "@openeuropa/bcl-icon": "^0.23.0",
40
- "@openeuropa/bcl-inpage-navigation": "^0.23.0",
41
- "@openeuropa/bcl-landing-page": "^0.23.0",
42
- "@openeuropa/bcl-language-list": "^0.23.0",
43
- "@openeuropa/bcl-language-switcher": "^0.23.0",
44
- "@openeuropa/bcl-link": "^0.23.0",
45
- "@openeuropa/bcl-links-block": "^0.23.0",
46
- "@openeuropa/bcl-list-group": "^0.23.0",
47
- "@openeuropa/bcl-listing": "^0.23.0",
48
- "@openeuropa/bcl-modal": "^0.23.0",
49
- "@openeuropa/bcl-multilingual": "^0.23.0",
50
- "@openeuropa/bcl-navbar": "^0.23.0",
51
- "@openeuropa/bcl-navigation": "^0.23.0",
52
- "@openeuropa/bcl-news": "^0.23.0",
53
- "@openeuropa/bcl-offcanvas": "^0.23.0",
54
- "@openeuropa/bcl-page": "^0.23.0",
55
- "@openeuropa/bcl-pagination": "^0.23.0",
56
- "@openeuropa/bcl-person": "^0.23.0",
57
- "@openeuropa/bcl-placeholder": "^0.23.0",
58
- "@openeuropa/bcl-progress": "^0.23.0",
59
- "@openeuropa/bcl-project": "^0.23.0",
60
- "@openeuropa/bcl-project-status": "^0.23.0",
61
- "@openeuropa/bcl-recent-activities": "^0.23.0",
62
- "@openeuropa/bcl-search": "^0.23.0",
63
- "@openeuropa/bcl-search-form": "^0.23.0",
64
- "@openeuropa/bcl-select": "^0.23.0",
65
- "@openeuropa/bcl-spinner": "^0.23.0",
66
- "@openeuropa/bcl-subscription": "^0.23.0",
67
- "@openeuropa/bcl-subscription-block": "^0.23.0",
68
- "@openeuropa/bcl-table": "^0.23.0",
69
- "@openeuropa/bcl-textarea": "^0.23.0",
70
- "@openeuropa/bcl-timeline": "^0.23.0",
71
- "@openeuropa/bcl-toast": "^0.23.0",
72
- "@openeuropa/bcl-user": "^0.23.0",
11
+ "@openeuropa/bcl-accordion": "^0.24.0",
12
+ "@openeuropa/bcl-alert": "^0.24.0",
13
+ "@openeuropa/bcl-badge": "^0.24.0",
14
+ "@openeuropa/bcl-banner": "^0.24.0",
15
+ "@openeuropa/bcl-base-templates": "^0.24.0",
16
+ "@openeuropa/bcl-blockquote": "^0.24.0",
17
+ "@openeuropa/bcl-breadcrumb": "^0.24.0",
18
+ "@openeuropa/bcl-button": "^0.24.0",
19
+ "@openeuropa/bcl-button-group": "^0.24.0",
20
+ "@openeuropa/bcl-card": "^0.24.0",
21
+ "@openeuropa/bcl-card-layout": "^0.24.0",
22
+ "@openeuropa/bcl-carousel": "^0.24.0",
23
+ "@openeuropa/bcl-contact-form": "^0.24.0",
24
+ "@openeuropa/bcl-content-banner": "^0.24.0",
25
+ "@openeuropa/bcl-date-block": "^0.24.0",
26
+ "@openeuropa/bcl-description-list": "^0.24.0",
27
+ "@openeuropa/bcl-dropdown": "^0.24.0",
28
+ "@openeuropa/bcl-event": "^0.24.0",
29
+ "@openeuropa/bcl-fact-figures": "^0.24.0",
30
+ "@openeuropa/bcl-featured-media": "^0.24.0",
31
+ "@openeuropa/bcl-file": "^0.24.0",
32
+ "@openeuropa/bcl-footer": "^0.24.0",
33
+ "@openeuropa/bcl-form": "^0.24.0",
34
+ "@openeuropa/bcl-form-input": "^0.24.0",
35
+ "@openeuropa/bcl-gallery": "^0.24.0",
36
+ "@openeuropa/bcl-glossary": "^0.24.0",
37
+ "@openeuropa/bcl-group": "^0.24.0",
38
+ "@openeuropa/bcl-header": "^0.24.0",
39
+ "@openeuropa/bcl-heading": "^0.24.0",
40
+ "@openeuropa/bcl-icon": "^0.24.0",
41
+ "@openeuropa/bcl-inpage-navigation": "^0.24.0",
42
+ "@openeuropa/bcl-landing-page": "^0.24.0",
43
+ "@openeuropa/bcl-language-list": "^0.24.0",
44
+ "@openeuropa/bcl-language-switcher": "^0.24.0",
45
+ "@openeuropa/bcl-link": "^0.24.0",
46
+ "@openeuropa/bcl-links-block": "^0.24.0",
47
+ "@openeuropa/bcl-list-group": "^0.24.0",
48
+ "@openeuropa/bcl-listing": "^0.24.0",
49
+ "@openeuropa/bcl-modal": "^0.24.0",
50
+ "@openeuropa/bcl-multilingual": "^0.24.0",
51
+ "@openeuropa/bcl-navbar": "^0.24.0",
52
+ "@openeuropa/bcl-navigation": "^0.24.0",
53
+ "@openeuropa/bcl-news": "^0.24.0",
54
+ "@openeuropa/bcl-offcanvas": "^0.24.0",
55
+ "@openeuropa/bcl-page": "^0.24.0",
56
+ "@openeuropa/bcl-pagination": "^0.24.0",
57
+ "@openeuropa/bcl-person": "^0.24.0",
58
+ "@openeuropa/bcl-placeholder": "^0.24.0",
59
+ "@openeuropa/bcl-progress": "^0.24.0",
60
+ "@openeuropa/bcl-project": "^0.24.0",
61
+ "@openeuropa/bcl-project-status": "^0.24.0",
62
+ "@openeuropa/bcl-recent-activities": "^0.24.0",
63
+ "@openeuropa/bcl-search": "^0.24.0",
64
+ "@openeuropa/bcl-search-form": "^0.24.0",
65
+ "@openeuropa/bcl-select": "^0.24.0",
66
+ "@openeuropa/bcl-spinner": "^0.24.0",
67
+ "@openeuropa/bcl-subscription": "^0.24.0",
68
+ "@openeuropa/bcl-subscription-block": "^0.24.0",
69
+ "@openeuropa/bcl-table": "^0.24.0",
70
+ "@openeuropa/bcl-textarea": "^0.24.0",
71
+ "@openeuropa/bcl-timeline": "^0.24.0",
72
+ "@openeuropa/bcl-toast": "^0.24.0",
73
+ "@openeuropa/bcl-user": "^0.24.0",
73
74
  "copyfiles": "2.4.1",
74
75
  "rimraf": "3.0.2"
75
76
  },
@@ -92,5 +93,5 @@
92
93
  "design-system",
93
94
  "twig"
94
95
  ],
95
- "gitHead": "fa2097e14024989cddf6f9cd7a9115bed5886aeb"
96
+ "gitHead": "a46bb6bc12771da4667516dc7b0665b00504ade2"
96
97
  }
@@ -3,18 +3,17 @@
3
3
  {#
4
4
  Parameters:
5
5
  - id (int) (default: random(1000))
6
- - flush (boolean) (default: false) flush variant of the accordion
6
+ - flush (boolean) (default: false)
7
7
  - items (array) (default: []): format: [
8
8
  {
9
9
  title: (string),
10
10
  title_tag: (string),
11
11
  content: (block),
12
- stay_open (boolean) (default: false) stay open after another selected
12
+ stay_open (boolean) (default: false)
13
13
  },
14
- ...
15
14
  ]
16
- - open_item_id (int) (default: 0) index value of the item to open (starting from 1),
17
- all closed by default (0)
15
+ - open_item_id (int) (default: 0)
16
+ - attributes (drupal attrs)
18
17
  #}
19
18
 
20
19
  {% set _id = id|default(random(1000)) %}
@@ -8,15 +8,17 @@
8
8
  - animated_dismiss (boolean) (default: true)
9
9
  - icon_path (string) (default: '')
10
10
  - icon_name (string) (default: '')
11
+ - attributes (drupal attrs)
11
12
  #}
12
13
 
13
14
  {% set _message = message|default('') %}
14
- {% set _variant = variant|default('primary') %}
15
15
  {% set _heading = heading|default('') %}
16
- {% set _icon_path = icon_path|default('') %}
16
+ {% set _variant = variant|default('primary') %}
17
17
  {% set _dismissible = dismissible ?? true %}
18
18
  {% set _animated_dismiss = animated_dismiss ?? true %}
19
+ {% set _icon_path = icon_path|default('') %}
19
20
  {% set _icon_name = icon_name|default('') %}
21
+
20
22
  {% set _classes = ['alert', 'alert-' ~ _variant|e('html_attr'), 'd-flex', 'align-items-center'] %}
21
23
  {% set _icon_names = {
22
24
  primary: "info-circle-fill",
@@ -62,7 +64,7 @@
62
64
  {% endif %}
63
65
  <div class="alert-content flex-grow-1">
64
66
  {%- if _heading is not empty -%}
65
- <h4 class="alert-heading">{{ _heading }}</h4>
67
+ <div class="alert-heading h4">{{ _heading }}</div>
66
68
  {%- endif -%}
67
69
  {%- if _message is not empty -%}
68
70
  {{- _message -}}
@@ -10,18 +10,20 @@
10
10
  - rounded_pill (boolean) (default: false)
11
11
  - outline (boolean) (default: false)
12
12
  - icon_path (string) (default: '')
13
+ - attributes (drupal attrs)
13
14
  #}
14
15
 
15
- {% set _rounded_pill = rounded_pill|default(false) %}
16
- {% set _outline = outline|default(false) %}
17
- {% set _background = background|default('primary') %}
18
16
  {% set _label = label|default('') %}
19
- {% set _classes = ['badge'] %}
17
+ {% set _background = background|default('primary') %}
20
18
  {% set _url = url|default('') %}
21
- {% set _icon_path = icon_path|default('') %}
22
19
  {% set _title = title|default(_label) %}
23
20
  {% set _dismissible = dismissible|default(false) %}
24
21
  {% set _assistive_text = assistive_text|default('') %}
22
+ {% set _rounded_pill = rounded_pill|default(false) %}
23
+ {% set _outline = outline|default(false) %}
24
+ {% set _icon_path = icon_path|default('') %}
25
+
26
+ {% set _classes = ['badge'] %}
25
27
 
26
28
  {% if _rounded_pill %}
27
29
  {% set _classes = _classes|merge(['rounded-pill']) %}
@@ -1,17 +1,18 @@
1
1
  {% spaceless %}
2
2
 
3
3
  {# Parameters:
4
- - title: (string) (default: "")
5
- - title_tag: (string) (default: "div")
4
+ - title: (string) (default: '')
5
+ - title_tag: (string) (default: 'div')
6
6
  - title_link: (link object) (default: {})
7
7
  - title_attributes (drupal attrs)
8
- - description: (string) (default: "")
8
+ - description: (string) (default: '')
9
9
  - link: (link object) (default: {}): predefined structure for Link component
10
10
  - image: (string) <img> tag
11
11
  - shade: (boolean) (default: false)
12
12
  - hero: (boolean) (default: false)
13
13
  - full_width: (boolean) (default: false)
14
- - content_classes: (string) (default: "")
14
+ - content_classes: (string) (default: '')
15
+ - attributes (drupal attrs)
15
16
  #}
16
17
 
17
18
  {% set _title = title|default('') %}
@@ -26,7 +27,6 @@
26
27
  {% set _full_width = full_width|default(false) %}
27
28
  {% set _content_classes = content_classes|default('') %}
28
29
 
29
-
30
30
  {% set _content_class = 'bcl-banner__content' %}
31
31
  {% if _content_classes is not empty %}
32
32
  {% set _content_class = _content_class ~ " " ~ _content_classes %}
@@ -16,6 +16,7 @@
16
16
  - header
17
17
  - footer
18
18
  - content
19
+ - content_row
19
20
  - sidebar
20
21
  - banner
21
22
  - feedback
@@ -37,6 +38,7 @@
37
38
  {% set _col_classes = {
38
39
  left: [
39
40
  'col-12',
41
+ 'bcl-sidebar',
40
42
  ],
41
43
  right: [
42
44
  'col-12',
@@ -92,6 +94,9 @@
92
94
 
93
95
  <div class="container mt-md-4-75 mt-4">
94
96
  <div class="row">
97
+ {% block content_row %}
98
+ {{ content_row }}
99
+ {% endblock %}
95
100
  {% if _with_sidebar %}
96
101
  <div class="{{ _col_classes.left|join(' ') }}">
97
102
  {% block sidebar %}{% endblock %}
@@ -23,7 +23,9 @@
23
23
  {% set _title_attributes = _title_attributes ?: create_attribute() %}
24
24
 
25
25
  {% block content_top %}
26
+ {% if filter_button %}
26
27
  {% include '@oe-bcl/bcl-button/button.html.twig' with filter_button only %}
28
+ {% endif %}
27
29
  <div class="row">
28
30
  <div class="col-md-6 col-lg-8 align-self-center">
29
31
  {% if _title is not empty %}
@@ -5,13 +5,15 @@
5
5
  - attribution (string) (default: '')
6
6
  - cite (string) (default: '')
7
7
  - alignment (string) (default: 'left')
8
- - options ["left", "center", "end"]
8
+ - options ['left', 'center', 'end']
9
+ - attributes (drupal attrs)
9
10
  #}
10
11
 
11
12
  {% set _quote = quote|default('') %}
12
13
  {% set _attribution = attribution|default('') %}
13
14
  {% set _cite = cite|default('') %}
14
15
  {% set _alignment = alignment|default('left') %}
16
+
15
17
  {% set _classes = [
16
18
  'text-' ~ _alignment,
17
19
  "bg-lighter",
@@ -1,7 +1,9 @@
1
1
  {% spaceless %}
2
2
 
3
3
  {# Parameters:
4
- - links (array of objects of type link)
4
+ - links (array of objects of type link) (default: [])
5
+ - icon_path (string) (default: '')
6
+ - attributes (drupal attrs)
5
7
  #}
6
8
 
7
9
  {% set _classes = 'breadcrumb' %}
@@ -5,7 +5,7 @@
5
5
  - label (string) (default: '')
6
6
  - variant (string) (default: 'primary')
7
7
  - size (string) (default: 'md')
8
- - options ["sm", "md", "lg"]
8
+ - options ['sm', 'md', 'lg']
9
9
  - type (string) (default: 'button')
10
10
  - outline (boolean) (default: false)
11
11
  - disabled (boolean) (default: false)
@@ -14,12 +14,13 @@
14
14
  - id (string) (default: '')
15
15
  - icon (icon object) (default: {}): predefined structure for Icon component
16
16
  - icon_position (string) (default: after)
17
- - options ["after", "before"]
17
+ - options ['after', 'before']
18
18
  - icon_spacing (string) (default: '')
19
- - options ["sm", "md", "lg"]
20
- - clean_class (boolean) (default: false)
19
+ - options ['sm', 'md', 'lg']
21
20
  - spinner (spinner object) (default: {})
22
21
  - show_spinner (boolean) (default: false)
22
+ - clean_class (boolean) (default: false)
23
+ - attributes (drupal attrs)
23
24
  #}
24
25
 
25
26
  {% set _label = label|default('') %}
@@ -37,6 +38,7 @@
37
38
  {% set _show_spinner = show_spinner|default(false) %}
38
39
  {% set _spinner = spinner|default({}) %}
39
40
  {% set _clean_class = clean_class|default(false) %}
41
+
40
42
  {% set _classes = [] %}
41
43
  {% if _clean_class == false %}
42
44
  {% set _classes = _classes|merge(['btn', 'btn-' ~ (_outline ? 'outline-' : '') ~ _variant|e('html_attr')]) %}
@@ -3,11 +3,12 @@
3
3
  {# Parameters:
4
4
  - vertical (boolean) (default: false)
5
5
  - size (string) (default: 'md')
6
- - options ["sm", "md", "lg"]
7
- - toolbar (boolean) (default: 'false')
6
+ - options ['sm', 'md', 'lg']
8
7
  - aria_label (string) (default: '')
8
+ - toolbar (boolean) (default: 'false')
9
9
  - toolbar_aria_label (string) (default: '')
10
- - items (array of arrays with objects of type button or form-input (input key mandatory when the object is a form-input))
10
+ - items (array of arrays with objects of type button or form-input (input key mandatory when the object is a form-input)) (default: [])
11
+ - attributes (drupal attrs)
11
12
  #}
12
13
 
13
14
  {% set _vertical = vertical|default(false) %}
@@ -2,7 +2,7 @@
2
2
 
3
3
  {# Parameters:
4
4
  - title: (string) (default: '')
5
- - title_tag: (string) (default: 'h5')
5
+ - title_tag: (string) (default: 'h1')
6
6
  - title_link: (link object) (default: {})
7
7
  - title_attributes (drupal attrs)
8
8
  - subtitle (object) (default: {})
@@ -42,6 +42,8 @@
42
42
  - extra_classes_header (string) (default: '')
43
43
  - extra_classes_footer (string) (default: '')
44
44
  - badges (array of badge object) (default: [])
45
+ - links (array of link object) (default: [])
46
+ - attributes (drupal attrs)
45
47
 
46
48
  Blocks
47
49
  - card_date
@@ -73,19 +75,13 @@
73
75
  {% set _extra_classes_footer = extra_classes_footer|default('') %}
74
76
  {% set _badges = badges|default([]) %}
75
77
  {% set _links = links|default([]) %}
78
+
76
79
  {% set _classes = ['card'] %}
77
80
  {% if _text_color is not empty %}
78
81
  {% set _classes = _classes|merge(['text-' ~ _text_color]) %}
79
82
  {% endif %}
80
83
  {% if _variant is not empty %}
81
84
  {% set _classes = _classes|merge(['bg-' ~ _variant]) %}
82
- {% if _text_color is empty %}
83
- {% if _variant == 'warning' or _variant == 'info' or _variant == 'light' %}
84
- {% set _classes = _classes|merge(['text-dark']) %}
85
- {% else %}
86
- {% set _classes = _classes|merge(['text-white']) %}
87
- {% endif %}
88
- {% endif %}
89
85
  {% endif %}
90
86
  {% if _border_variant is not empty %}
91
87
  {% set _classes = _classes|merge(['border-' ~ _border_variant]) %}
@@ -232,7 +228,7 @@
232
228
  {%- if _links is not empty and _links is iterable -%}
233
229
  <div class="mt-2-5 mb-2">
234
230
  {% for _link in _links %}
235
- <div class="mb-3 mb-md-0 d-block d-md-inline-block me-4-5">
231
+ <div class="mb-3 mb-md-0 d-block d-md-inline-block me-md-4-5">
236
232
  {% include '@oe-bcl/bcl-link/link.html.twig' with _link only %}
237
233
  </div>
238
234
  {% endfor %}
@@ -3,7 +3,7 @@
3
3
  {# Parameters:
4
4
  - type (string) (default: 'group')
5
5
  options: ['group', 'grid', 'masonry']
6
- - items (array of Card) (default: [])
6
+ - items (array of object type card) (default: [])
7
7
  - grid_columns (int) (default: 1)
8
8
  options: ['1', '2', '3']
9
9
  - responsiveness (string) (default: '')
@@ -14,6 +14,7 @@
14
14
  options: ['0', '1', '2', '3', '4', '5']
15
15
  - equal_height (boolean) (default: false)
16
16
  - cols_extra_classes (string) (default: '')
17
+ - attributes (drupal attrs)
17
18
 
18
19
  Blocks
19
20
  - card_layout_card
@@ -27,6 +28,7 @@
27
28
  {% set _gutter = gutter|default('') %}
28
29
  {% set _equal_height = equal_height|default(false) %}
29
30
  {% set _cols_extra_classes = cols_extra_classes|default('') %}
31
+
30
32
  {% set _cols_classes = 'col' %}
31
33
 
32
34
  {% if _cols_extra_classes is not empty %}
@@ -14,30 +14,32 @@
14
14
  caption_title (string)
15
15
  interval (integer) (default: 0)
16
16
  }
17
- ...
18
17
  ],
19
18
  - fade (boolean) (default: false)
20
19
  - with_controls (boolean) (default: true)
21
- - previous_label (string) (default: '')
20
+ - prev_label (string) (default: '')
22
21
  - next_label (string) (default: '')
23
22
  - with_indicators (boolean) (default: false)
24
23
  - rounded_indicators (boolean) (default: false)
24
+ - disable_touch (boolean) (default: false)
25
+ - attributes (drupal attrs)
25
26
  #}
26
27
 
27
28
  {% set _id = id|default('') %}
29
+ {% set _autoinit = autoinit ?? true %}
30
+ {% set _autoplay = autoplay ?? true %}
31
+ {% set _dark = dark|default(false) %}
32
+ {% set _active_item = active_item|default(1) %}
28
33
  {% set _items = items|default([]) %}
34
+ {% set _fade = fade|default(false) %}
29
35
  {% set _with_controls = with_controls ?? true %}
30
- {% set _active_item = active_item|default(1) %}
31
36
  {% set _prev_label = prev_label|default('') %}
32
37
  {% set _next_label = next_label|default('') %}
33
38
  {% set _with_indicators = with_indicators|default(false) %}
34
39
  {% set _rounded_indicators = rounded_indicators|default(false) %}
35
- {% set _classes = ['carousel slide'] %}
36
- {% set _autoinit = autoinit ?? true %}
37
- {% set _autoplay = autoplay ?? true %}
38
40
  {% set _disable_touch = disable_touch|default(false) %}
39
- {% set _fade = fade|default(false) %}
40
- {% set _dark = dark|default(false) %}
41
+
42
+ {% set _classes = ['carousel slide'] %}
41
43
 
42
44
  {% if _fade %}
43
45
  {% set _classes = _classes|merge(['carousel-fade']) %}
@@ -31,6 +31,10 @@
31
31
  {% set _date = date|default({}) %}
32
32
  {% set _image_size = image_size|default('md') %}
33
33
 
34
+ {% if attributes is empty %}
35
+ {% set attributes = create_attribute() %}
36
+ {% endif %}
37
+
34
38
  {% set _css_classes = [
35
39
  'bcl-content-banner',
36
40
  ] %}
@@ -54,10 +58,6 @@
54
58
  'gray': 'bg-lighter',
55
59
  } %}
56
60
 
57
- {% if attributes is empty %}
58
- {% set attributes = create_attribute() %}
59
- {% endif %}
60
-
61
61
  {% set _body_classes = 'pt-0 px-0 pb-0' %}
62
62
  {% set _left_col_classes = '' %}
63
63
  {% set _right_col_classes = 'col-md-8 col-lg-9 col-xxl-8' %}
@@ -88,27 +88,30 @@
88
88
  title: _title,
89
89
  title_tag: _title_tag,
90
90
  title_link: _title_link,
91
- title_attributes: _title_attributes.addClass('mb-0'),
91
+ title_attributes: _title_attributes.addClass('fs-1'),
92
92
  horizontal: true,
93
93
  horizontal_grid: _horizontal_classes,
94
94
  extra_classes_header: 'bg-transparent pt-0 pb-0 border-0',
95
95
  extra_classes_body: _body_classes,
96
+ attributes: create_attribute().addClass(['bg-transparent', 'border-0']),
96
97
  } %}
97
98
 
98
99
  {% set _css_classes = _css_classes|merge([_modifiers[_background]]) %}
99
- {% set _attributes = attributes.addClass(['bg-transparent', 'border-0']) %}
100
+ {% set attributes = attributes.addClass(_css_classes) %}
100
101
 
101
102
  {% if _button is not empty %}
102
- {% set _attributes = attributes.addClass(['col-md-10']) %}
103
+ {% set _card = _card|merge({
104
+ attributes: _card.attributes.addClass(['col-md-10']),
105
+ }) %}
103
106
  {% endif %}
104
107
 
105
- <div class="{{ _css_classes|join(' ') }}">
108
+ <div {{ attributes }}>
106
109
  <div class="container">
107
110
  {% include '@oe-bcl/bcl-card/card.html.twig' with _card %}
108
111
 
109
- {%- block action_bar -%}
110
- {{ _action_bar }}
111
- {%- endblock -%}
112
+ {%- block action_bar -%}
113
+ {{ _action_bar }}
114
+ {%- endblock -%}
112
115
  </div>
113
116
  </div>
114
117
 
@@ -1,7 +1,7 @@
1
1
  {% spaceless %}
2
2
 
3
3
  {# Parameters:
4
- - id (string) (default: '')
4
+ - id (string) (default: 'dropdown-' random(1000))
5
5
  - trigger (object of Button or Link component)
6
6
  - link (boolean) (default: false)
7
7
  - direction (string) (default: '')
@@ -32,6 +32,7 @@
32
32
  - button (boolean) - set to button
33
33
  }
34
34
  ]
35
+ - attributes (drupal attrs)
35
36
  #}
36
37
 
37
38
  {% set _id = id|default('dropdown-' ~ random(1000)) %}
@@ -42,6 +43,7 @@
42
43
  {% set _dark = dark|default(false) %}
43
44
  {% set _remove_wrapper = remove_wrapper|default(false) %}
44
45
  {% set _items = items|default([]) %}
46
+
45
47
  {% set _class = 'dropdown' %}
46
48
  {% set _dropdown_classes = ['dropdown-menu'] %}
47
49
 
@@ -87,21 +87,23 @@
87
87
  {% for _item in _items %}
88
88
  <div class="{{ _cols_classes }}">
89
89
  {% if _item.icon is defined and _item.icon is not empty and _display_icons %}
90
+ {% set _icon_attributes = _item.icon.attributes ?: create_attribute() %}
90
91
  {% set _item = _item|merge({
91
92
  icon: _item.icon|merge({
92
93
  path: _icon_path,
93
94
  size: 'l',
95
+ attributes: _icon_attributes.addClass('mb-2'),
94
96
  })
95
97
  }) %}
96
98
  {% include '@oe-bcl/bcl-icon/icon.html.twig' with _item.icon only %}
97
99
  {% endif %}
98
100
  {% if _item.title is defined and _item.title is not empty %}
99
- <div class="fs-3 mt-2">
101
+ <div class="fs-4 fw-medium">
100
102
  {{- _item.title -}}
101
103
  </div>
102
104
  {% endif %}
103
105
  {% if _item.subtitle is defined and _item.subtitle is not empty %}
104
- <div class="fs-5">
106
+ <div class="fs-5 fw-medium">
105
107
  {{- _item.subtitle -}}
106
108
  </div>
107
109
  {% endif %}