@openeuropa/bcl-dropdown 0.28.1 → 1.0.2

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.
@@ -1,8 +1,8 @@
1
1
  {% apply spaceless %}
2
2
 
3
3
  {# Parameters:
4
- - id (string) (default: 'dropdown-' random(1000))
5
- - trigger (object of Button or Link component)
4
+ - id (string) (default: dropdown-random(1000))
5
+ - trigger (link or button)
6
6
  - link (boolean) (default: false)
7
7
  - direction (string) (default: '')
8
8
  - options ['dropup', 'dropend', 'dropstart']
@@ -23,10 +23,10 @@
23
23
  ]
24
24
  - dark (boolean) (default: false)
25
25
  - remove_wrapper (boolean) (default: false)
26
- - items (array of objects)
26
+ - items (object[])
27
27
  format: [
28
28
  {
29
- - Link or Button object component
29
+ - link or button object
30
30
  - active (boolean)
31
31
  - divider (bolean) - show divider
32
32
  - button (boolean) - set to button
@@ -37,11 +37,11 @@
37
37
 
38
38
  {% set _id = id|default('dropdown-' ~ random(1000)) %}
39
39
  {% set _trigger = trigger|default({}) %}
40
- {% set _link = link|default(false) %}
40
+ {% set _link = link ?? false %}
41
41
  {% set _direction = direction|default('') %}
42
42
  {% set _alignment = alignment|default('') %}
43
- {% set _dark = dark|default(false) %}
44
- {% set _remove_wrapper = remove_wrapper|default(false) %}
43
+ {% set _dark = dark ?? false %}
44
+ {% set _remove_wrapper = remove_wrapper ?? false %}
45
45
  {% set _items = items|default([]) %}
46
46
 
47
47
  {% set _class = 'dropdown' %}
package/package.json CHANGED
@@ -2,14 +2,14 @@
2
2
  "name": "@openeuropa/bcl-dropdown",
3
3
  "author": "European Commission",
4
4
  "license": "EUPL-1.2",
5
- "version": "0.28.1",
5
+ "version": "1.0.2",
6
6
  "publishConfig": {
7
7
  "access": "public"
8
8
  },
9
9
  "description": "OE - BCL dropdown",
10
10
  "dependencies": {
11
- "@openeuropa/bcl-button": "^0.28.1",
12
- "@openeuropa/bcl-link": "^0.28.1"
11
+ "@openeuropa/bcl-button": "^1.0.2",
12
+ "@openeuropa/bcl-link": "^1.0.2"
13
13
  },
14
14
  "repository": {
15
15
  "type": "git",
@@ -25,5 +25,5 @@
25
25
  "design-system",
26
26
  "twig"
27
27
  ],
28
- "gitHead": "3b0d2f4a85c727f38ae4e3403110c98302d09117"
28
+ "gitHead": "54df3dccb26d9f6958862f06103766a0a2d78ca6"
29
29
  }