@openeuropa/bcl-navigation 0.28.1 → 1.0.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.
@@ -12,14 +12,14 @@
12
12
  - tabs_content (boolean) (default: false)
13
13
  - nav (boolean) (default: false)
14
14
  - navbar (boolean) (default: false)
15
- - items (array of objects)
15
+ - items (object[])
16
16
  format: [
17
17
  {
18
- - Link or Button object component
18
+ - link or button
19
19
  - active (boolean)
20
20
  - button (boolean) - set to button
21
21
  - content (string) - content for tab
22
- - navigation (navigation Object) - set for multiple level or navigation, items inside is required
22
+ - navigation (navigation Object)
23
23
  }
24
24
  ]
25
25
  - attributes (drupal attrs)
@@ -31,14 +31,14 @@
31
31
  {% import _self as navigation %}
32
32
 
33
33
  {% set _id = id|default('') %}
34
- {% set _pills = pills|default(false) %}
35
- {% set _tabs = tabs|default(false) %}
36
- {% set _vertical = vertical|default(false) %}
37
- {% set _full_width = full_width|default(false) %}
34
+ {% set _pills = pills ?? false %}
35
+ {% set _tabs = tabs ?? false %}
36
+ {% set _vertical = vertical ?? false %}
37
+ {% set _full_width = full_width ?? false %}
38
38
  {% set _alignment = alignment|default('') %}
39
- {% set _tabs_content = tabs_content|default(false) %}
40
- {% set _nav = nav|default(false) %}
41
- {% set _navbar = navbar|default(false) %}
39
+ {% set _tabs_content = tabs_content ?? false %}
40
+ {% set _nav = nav ?? false %}
41
+ {% set _navbar = navbar ?? false %}
42
42
  {% set _items = items|default([]) %}
43
43
 
44
44
  {% if _navbar %}
package/package.json CHANGED
@@ -2,15 +2,15 @@
2
2
  "name": "@openeuropa/bcl-navigation",
3
3
  "author": "European Commission",
4
4
  "license": "EUPL-1.2",
5
- "version": "0.28.1",
5
+ "version": "1.0.0",
6
6
  "publishConfig": {
7
7
  "access": "public"
8
8
  },
9
9
  "description": "OE - BCL navigation",
10
10
  "dependencies": {
11
- "@openeuropa/bcl-button": "^0.28.1",
12
- "@openeuropa/bcl-dropdown": "^0.28.1",
13
- "@openeuropa/bcl-link": "^0.28.1"
11
+ "@openeuropa/bcl-button": "^1.0.0",
12
+ "@openeuropa/bcl-dropdown": "^1.0.0",
13
+ "@openeuropa/bcl-link": "^1.0.0"
14
14
  },
15
15
  "repository": {
16
16
  "type": "git",
@@ -26,5 +26,5 @@
26
26
  "design-system",
27
27
  "twig"
28
28
  ],
29
- "gitHead": "3b0d2f4a85c727f38ae4e3403110c98302d09117"
29
+ "gitHead": "16b986722345644e83a37dc8091c07eecbdf4c8c"
30
30
  }