@openeuropa/bcl-data-header 0.3694.202508010230 → 0.3724.202507051500

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/data--ec.js CHANGED
@@ -8,7 +8,6 @@ const modals = require("@openeuropa/bcl-data-header/data--modals");
8
8
 
9
9
  module.exports = {
10
10
  variant: "ec",
11
- navbar_id: "header-navbar",
12
11
  site_name: "Project name",
13
12
  project_logo: {
14
13
  path: "https://inno-ecl.s3.amazonaws.com/media/examples/placeholder.svg",
@@ -20,6 +19,8 @@ module.exports = {
20
19
  attributes: new drupalAttribute()
21
20
  .addClass(["w-100", "shadow-sm", "bcl-header__top-navbar"])
22
21
  .setAttribute("aria-label", "Top Navigation"),
22
+ disable_collapse: false,
23
+ collapse_id: "topNavbarDropdown",
23
24
  brand: {
24
25
  link: "/example.html",
25
26
  logos: [
package/data--navbar.js CHANGED
@@ -1,111 +1,49 @@
1
1
  const drupalAttribute = require("drupal-attribute");
2
2
 
3
3
  module.exports = {
4
- navbar_id: "header-navbar",
5
4
  color_set: "dark",
6
5
  collapse_id: "navbarNavDropdown",
7
6
  attributes: new drupalAttribute()
8
- .setAttribute("aria-label", "Main Navigation")
9
- .addClass("bcl-header__navbar"),
7
+ .addClass("bcl-header__navbar")
8
+ .setAttribute("aria-label", "Main Navigation"),
9
+ form: {
10
+ attributes: new drupalAttribute().addClass(["d-flex", "mt-3", "mt-lg-0"]),
11
+ submit: {
12
+ variant: "light",
13
+ assistive_text: "search",
14
+ icon: {
15
+ name: "search",
16
+ size: "xs",
17
+ path: "/icons.svg",
18
+ },
19
+ attributes: new drupalAttribute().addClass([
20
+ "border-start-0",
21
+ "rounded-0",
22
+ "rounded-end",
23
+ ]),
24
+ },
25
+ items: [
26
+ [
27
+ {
28
+ type: "text",
29
+ required: true,
30
+ label: "Search",
31
+ hidden_label: true,
32
+ placeholder: "Search",
33
+ id: "inlineFormInputGroupSearch",
34
+ attributes: new drupalAttribute().addClass([
35
+ "border-start-0",
36
+ "rounded-0",
37
+ "rounded-start",
38
+ ]),
39
+ },
40
+ ],
41
+ ],
42
+ },
10
43
  navigation: {
11
44
  navbar: true,
12
45
  attributes: new drupalAttribute().addClass("me-auto"),
13
46
  items: [
14
- {
15
- mega_menu: true,
16
- icon_path: "/icons.svg",
17
- id: "dropdown-megamenu",
18
- trigger: {
19
- label: "A link with dropdown",
20
- },
21
- content_link: {
22
- label: "Discover more",
23
- path: "/example.html",
24
- icon: {
25
- name: "arrow-right",
26
- },
27
- },
28
- content_block:
29
- "<h4>About the European Commission</h4><p>Description text, lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>",
30
- items: [
31
- {
32
- id: "dropdown-megamenu-inner",
33
- trigger: {
34
- label: "Base Category Item",
35
- },
36
- see_all: {
37
- label: "See all",
38
- path: "/example.html",
39
- },
40
- items: [
41
- {
42
- label: "Base Sub Category Item",
43
- path: "/example.html",
44
- },
45
- {
46
- label: "Base Sub Category Item",
47
- path: "/example.html",
48
- },
49
- {
50
- label: "Base Sub Category Item",
51
- path: "/example.html",
52
- },
53
- {
54
- label: "Base Sub Category Item",
55
- path: "/example.html",
56
- },
57
- {
58
- label: "Base Sub Category Item",
59
- path: "/example.html",
60
- },
61
- ],
62
- },
63
- {
64
- label: "Base Category Item",
65
- },
66
- {
67
- id: "dropdown-megamenu-inner-2",
68
- trigger: {
69
- label: "Base Category Item",
70
- path: "/example.html",
71
- },
72
- items: [
73
- {
74
- label: "Base Sub Category Item",
75
- path: "/example.html",
76
- },
77
- {
78
- label: "Base Sub Category Item",
79
- path: "/example.html",
80
- },
81
- {
82
- label: "Base Sub Category Item",
83
- path: "/example.html",
84
- },
85
- {
86
- label: "Base Sub Category Item",
87
- path: "/example.html",
88
- },
89
- {
90
- label: "Base Sub Category Item",
91
- path: "/example.html",
92
- },
93
- ],
94
- },
95
- {
96
- label: "Base Category Item",
97
- path: "/example.html",
98
- },
99
- {
100
- label: "Base Category Item",
101
- path: "/example.html",
102
- },
103
- {
104
- label: "Base Category Item",
105
- path: "/example.html",
106
- },
107
- ],
108
- },
109
47
  {
110
48
  label: "Home",
111
49
  path: "/example.html",
@@ -122,9 +60,12 @@ module.exports = {
122
60
  },
123
61
  {
124
62
  id: "navbarDropdownMenuLink",
63
+ link: true,
125
64
  dropdown: true,
126
65
  trigger: {
127
66
  label: "Dropdown link",
67
+ path: "#",
68
+ attributes: new drupalAttribute().addClass("nav-link"),
128
69
  },
129
70
  items: [
130
71
  {
package/data--neutral.js CHANGED
@@ -7,7 +7,6 @@ const navbar = require("@openeuropa/bcl-data-header/data--navbar");
7
7
  const modals = require("@openeuropa/bcl-data-header/data--modals");
8
8
 
9
9
  module.exports = {
10
- navbar_id: "header-navbar",
11
10
  site_name: "Project name",
12
11
  site_name_classes: "h5 d-inline-block d-lg-none",
13
12
  head: {
package/data--no-form.js CHANGED
@@ -5,7 +5,6 @@ const languageList = require("@openeuropa/bcl-language-list/data/data-modal");
5
5
 
6
6
  module.exports = {
7
7
  variant: "eu",
8
- navbar_id: "header-navbar",
9
8
  head: {
10
9
  attributes: new drupalAttribute().addClass([
11
10
  "w-100",
@@ -69,10 +68,9 @@ module.exports = {
69
68
  navbar: {
70
69
  color_set: "dark",
71
70
  collapse_id: "navbarNavDropdown",
72
- attributes: new drupalAttribute().setAttribute(
73
- "aria-label",
74
- "Main Navigation",
75
- ),
71
+ attributes: new drupalAttribute()
72
+ .addClass("bcl-header__navbar")
73
+ .setAttribute("aria-label", "Main Navigation"),
76
74
  navigation: {
77
75
  navbar: true,
78
76
  attributes: new drupalAttribute().addClass("me-auto"),
package/data--simple.js CHANGED
@@ -7,7 +7,6 @@ const modals = require("@openeuropa/bcl-data-header/data--modals");
7
7
 
8
8
  module.exports = {
9
9
  variant: "eu",
10
- navbar_id: "header-navbar",
11
10
  head: {
12
11
  attributes: new drupalAttribute()
13
12
  .addClass(["w-100", "shadow-sm", "bcl-header__top-navbar"])
package/data--ucpkn.js CHANGED
@@ -1,7 +1,6 @@
1
1
  const drupalAttribute = require("drupal-attribute");
2
2
 
3
3
  module.exports = {
4
- navbar_id: "header-navbar",
5
4
  variant: "ucpkn",
6
5
  site_name: "UCP Knowledge Network: Applied knowledge for action",
7
6
  light: true,
@@ -14,6 +13,40 @@ module.exports = {
14
13
  color_set: "dark",
15
14
  collapse_id: "navbarNavDropdown",
16
15
  attributes: new drupalAttribute().addClass("bcl-header__navbar"),
16
+ form: {
17
+ attributes: new drupalAttribute().addClass(["d-flex", "mt-3", "mt-lg-0"]),
18
+ submit: {
19
+ variant: "light",
20
+ assistive_text: "search",
21
+ icon: {
22
+ name: "search",
23
+ size: "xs",
24
+ path: "/icons.svg",
25
+ },
26
+ attributes: new drupalAttribute().addClass([
27
+ "border-start-0",
28
+ "rounded-0",
29
+ "rounded-end",
30
+ ]),
31
+ },
32
+ items: [
33
+ [
34
+ {
35
+ type: "text",
36
+ required: true,
37
+ label: "Search",
38
+ hidden_label: true,
39
+ placeholder: "Search",
40
+ id: "inlineFormInputGroupSearch",
41
+ attributes: new drupalAttribute().addClass([
42
+ "border-start-0",
43
+ "rounded-0",
44
+ "rounded-start",
45
+ ]),
46
+ },
47
+ ],
48
+ ],
49
+ },
17
50
  navigation: {
18
51
  navbar: true,
19
52
  attributes: new drupalAttribute().addClass("me-auto"),
package/data.js CHANGED
@@ -7,7 +7,6 @@ const navbar = require("@openeuropa/bcl-data-header/data--navbar");
7
7
  const modals = require("@openeuropa/bcl-data-header/data--modals");
8
8
 
9
9
  module.exports = {
10
- navbar_id: "header-navbar",
11
10
  variant: "eu",
12
11
  site_name: "Project name",
13
12
  project_logo: {
package/package.json CHANGED
@@ -2,14 +2,14 @@
2
2
  "name": "@openeuropa/bcl-data-header",
3
3
  "author": "European Commission",
4
4
  "license": "EUPL-1.2",
5
- "version": "0.3694.202508010230",
5
+ "version": "0.3724.202507051500",
6
6
  "description": "OE header data",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },
10
10
  "dependencies": {
11
- "@openeuropa/bcl-data-breadcrumb": "^0.3694.202508010230",
12
- "@openeuropa/bcl-language-list": "^0.3694.202508010230"
11
+ "@openeuropa/bcl-data-breadcrumb": "^0.3724.202507051500",
12
+ "@openeuropa/bcl-language-list": "^0.3724.202507051500"
13
13
  },
14
14
  "repository": {
15
15
  "type": "git",
@@ -24,5 +24,5 @@
24
24
  "component-library",
25
25
  "design-system"
26
26
  ],
27
- "gitHead": "651742ae655c8882d895a253f9721eb81502c950"
27
+ "gitHead": "1efa19cc835df51eb5c42c3714cd8c84b62d5f8c"
28
28
  }