@openeuropa/bcl-data-navigation 0.14.0 → 0.18.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.
package/data.js CHANGED
@@ -1,9 +1,6 @@
1
- const drupalAttribute = require("drupal-attribute");
2
-
3
1
  module.exports = {
4
2
  pills: true,
5
3
  nav: true,
6
- attributes: new drupalAttribute(),
7
4
  items: [
8
5
  {
9
6
  label: "I'm a link 1",
@@ -0,0 +1,81 @@
1
+ const drupalAttribute = require("drupal-attribute");
2
+
3
+ module.exports = {
4
+ vertical: true,
5
+ attributes: new drupalAttribute().addClass("bcl__nav"),
6
+ items: [
7
+ {
8
+ label: "I'm a link 1",
9
+ path: "/example.html",
10
+ navigation: {
11
+ items: [
12
+ {
13
+ label: "I'm a child link",
14
+ path: "/example.html",
15
+ },
16
+ ],
17
+ },
18
+ },
19
+ {
20
+ label: "I'm a link 2",
21
+ path: "/example.html",
22
+ navigation: {
23
+ items: [
24
+ {
25
+ label: "I'm a child",
26
+ path: "/example.html",
27
+ },
28
+ {
29
+ label: "I'm a child",
30
+ path: "/example.html",
31
+ },
32
+ ],
33
+ },
34
+ },
35
+ {
36
+ label: "I'm a link 3",
37
+ path: "/example.html",
38
+ navigation: {
39
+ vertical: true,
40
+ attributes: new drupalAttribute().addClass("ps-3"),
41
+ items: [
42
+ {
43
+ label: "I'm a child link",
44
+ path: "/example.html",
45
+ navigation: {
46
+ vertical: true,
47
+ attributes: new drupalAttribute().addClass("ps-3"),
48
+ items: [
49
+ {
50
+ label: "I'm a child link",
51
+ path: "/example.html",
52
+ },
53
+ {
54
+ label: "I'm a child link",
55
+ path: "/example.html",
56
+ },
57
+ {
58
+ label: "I'm a child link",
59
+ path: "/example.html",
60
+ },
61
+ ],
62
+ },
63
+ },
64
+ {
65
+ label: "I'm a child link",
66
+ path: "/example.html",
67
+ },
68
+ {
69
+ label: "I'm a child link",
70
+ path: "/example.html",
71
+ },
72
+ ],
73
+ },
74
+ },
75
+ {
76
+ label: "I'm a link disabled",
77
+ path: "/example.html",
78
+ disabled: true,
79
+ },
80
+ ],
81
+ };
package/dataTabs.js CHANGED
@@ -2,8 +2,8 @@ const drupalAttribute = require("drupal-attribute");
2
2
 
3
3
  module.exports = {
4
4
  tabs: true,
5
+ nav: true,
5
6
  tabs_content: true,
6
- attributes: new drupalAttribute(),
7
7
  items: [
8
8
  {
9
9
  label: "I'm a link",
@@ -44,39 +44,6 @@ module.exports = {
44
44
  .setAttribute("data-bs-target", "#third")
45
45
  .setAttribute("aria-controls", "third"),
46
46
  },
47
- {
48
- id: "dropdown-1",
49
- link: true,
50
- dropdown: true,
51
- trigger: {
52
- label: "Dropdown Toggle",
53
- path: "#",
54
- attributes: new drupalAttribute().addClass("nav-link"),
55
- },
56
- items: [
57
- {
58
- label: "I'm a link",
59
- path: "/example.html",
60
- },
61
- {
62
- label: "I'm a button",
63
- button: true,
64
- },
65
- {
66
- divider: true,
67
- },
68
- {
69
- label: "I'm a disabled button",
70
- button: true,
71
- disabled: true,
72
- },
73
- {
74
- label: "I'm a active button",
75
- button: true,
76
- active: true,
77
- },
78
- ],
79
- },
80
47
  {
81
48
  label: "I'm a active button",
82
49
  button: true,
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": "0.14.0",
5
+ "version": "0.18.0",
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": "b91fc0b466f8a604eda1cfd519f3be4cbbc75324"
24
+ "gitHead": "a82834df6dff563a956a79bf2899c92742dd5820"
25
25
  }