@openeuropa/bcl-data-navigation 1.10.7 → 1.10.8

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--custom.js CHANGED
@@ -1,9 +1,9 @@
1
- const drupalAttribute = require("drupal-attribute");
1
+ const { DrupalAttribute } = require("drupal-attribute");
2
2
 
3
3
  module.exports = {
4
4
  nav: true,
5
5
  tabs: true,
6
- attributes: new drupalAttribute().addClass("bcl__nav"),
6
+ attributes: new DrupalAttribute().addClass("bcl__nav"),
7
7
  items: [
8
8
  {
9
9
  label: "I'm a link 1",
package/data--multiple.js CHANGED
@@ -1,8 +1,8 @@
1
- const drupalAttribute = require("drupal-attribute");
1
+ const { DrupalAttribute } = require("drupal-attribute");
2
2
 
3
3
  module.exports = {
4
4
  vertical: true,
5
- attributes: new drupalAttribute().addClass("bcl__nav"),
5
+ attributes: new DrupalAttribute().addClass("bcl__nav"),
6
6
  items: [
7
7
  {
8
8
  label: "I'm a link 1",
@@ -37,14 +37,14 @@ module.exports = {
37
37
  path: "/example.html",
38
38
  navigation: {
39
39
  vertical: true,
40
- attributes: new drupalAttribute().addClass("ps-3"),
40
+ attributes: new DrupalAttribute().addClass("ps-3"),
41
41
  items: [
42
42
  {
43
43
  label: "I'm a child link",
44
44
  path: "/example.html",
45
45
  navigation: {
46
46
  vertical: true,
47
- attributes: new drupalAttribute().addClass("ps-3"),
47
+ attributes: new DrupalAttribute().addClass("ps-3"),
48
48
  items: [
49
49
  {
50
50
  label: "I'm a child link",
package/data--tabs.js CHANGED
@@ -1,4 +1,4 @@
1
- const drupalAttribute = require("drupal-attribute");
1
+ const { DrupalAttribute } = require("drupal-attribute");
2
2
  const { getDummyText } = require("@openeuropa/bcl-data-utils");
3
3
 
4
4
  module.exports = {
@@ -12,7 +12,7 @@ module.exports = {
12
12
  content: `<p class="mt-4">This is a demo content for the First Tab. ${getDummyText()}</p>`,
13
13
  id: "first-tab",
14
14
  target: "first",
15
- attributes: new drupalAttribute()
15
+ attributes: new DrupalAttribute()
16
16
  .setAttribute("data-bs-toggle", "tab")
17
17
  .setAttribute("role", "button")
18
18
  .setAttribute("aria-controls", "first"),
@@ -23,7 +23,7 @@ module.exports = {
23
23
  content: `<p class="mt-4">This is a demo content for the Second Tab. ${getDummyText()}</p>`,
24
24
  id: "second-tab",
25
25
  target: "second",
26
- attributes: new drupalAttribute()
26
+ attributes: new DrupalAttribute()
27
27
  .setAttribute("data-bs-toggle", "tab")
28
28
  .setAttribute("autocomplete", "off")
29
29
  .setAttribute("data-bs-target", "#second")
@@ -36,7 +36,7 @@ module.exports = {
36
36
  content: `<p class="mt-4">This is a demo content for the Third Tab.</p>${getDummyText()}</p>`,
37
37
  id: "third-tab",
38
38
  target: "third",
39
- attributes: new drupalAttribute()
39
+ attributes: new DrupalAttribute()
40
40
  .setAttribute("data-bs-toggle", "tab")
41
41
  .setAttribute("autocomplete", "off")
42
42
  .setAttribute("data-bs-target", "#third")
@@ -49,7 +49,7 @@ module.exports = {
49
49
  content: `<p class="mt-4">This is a demo content for the Fourth Tab. ${getDummyText()}</p>`,
50
50
  id: "fourth-tab",
51
51
  target: "fourth",
52
- attributes: new drupalAttribute()
52
+ attributes: new DrupalAttribute()
53
53
  .setAttribute("aria-controls", "fourth")
54
54
  .setAttribute("data-bs-toggle", "tab")
55
55
  .setAttribute("autocomplete", "off")
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@openeuropa/bcl-data-navigation",
3
3
  "author": "European Commission",
4
4
  "license": "EUPL-1.2",
5
- "version": "1.10.7",
5
+ "version": "1.10.8",
6
6
  "description": "OE - BCL data navigation",
7
7
  "publishConfig": {
8
8
  "access": "public"
@@ -21,5 +21,5 @@
21
21
  "design-system",
22
22
  "twig"
23
23
  ],
24
- "gitHead": "5f7e5c2fd90eceb81c0ffcf52dcf8e3921c3acae"
24
+ "gitHead": "9c2e64443ae179948cbf748c41d438af7a0f2421"
25
25
  }