@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.
- package/dropdown.html.twig +7 -7
- package/package.json +4 -4
package/dropdown.html.twig
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{% apply spaceless %}
|
|
2
2
|
|
|
3
3
|
{# Parameters:
|
|
4
|
-
- id (string) (default:
|
|
5
|
-
- trigger (
|
|
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 (
|
|
26
|
+
- items (object[])
|
|
27
27
|
format: [
|
|
28
28
|
{
|
|
29
|
-
-
|
|
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
|
|
40
|
+
{% set _link = link ?? false %}
|
|
41
41
|
{% set _direction = direction|default('') %}
|
|
42
42
|
{% set _alignment = alignment|default('') %}
|
|
43
|
-
{% set _dark = dark
|
|
44
|
-
{% set _remove_wrapper = remove_wrapper
|
|
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.
|
|
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.
|
|
12
|
-
"@openeuropa/bcl-link": "^0.
|
|
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": "
|
|
28
|
+
"gitHead": "54df3dccb26d9f6958862f06103766a0a2d78ca6"
|
|
29
29
|
}
|