@openeuropa/bcl-subscription-block 0.21.0 → 0.24.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/package.json
CHANGED
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
"name": "@openeuropa/bcl-subscription-block",
|
|
3
3
|
"author": "European Commission",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.24.0",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
8
8
|
},
|
|
9
9
|
"description": "OE - BCL subscription block",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@openeuropa/bcl-alert": "^0.
|
|
12
|
-
"@openeuropa/bcl-button": "^0.
|
|
13
|
-
"@openeuropa/bcl-form": "^0.
|
|
14
|
-
"@openeuropa/bcl-modal": "^0.
|
|
11
|
+
"@openeuropa/bcl-alert": "^0.24.0",
|
|
12
|
+
"@openeuropa/bcl-button": "^0.24.0",
|
|
13
|
+
"@openeuropa/bcl-form": "^0.24.0",
|
|
14
|
+
"@openeuropa/bcl-modal": "^0.24.0"
|
|
15
15
|
},
|
|
16
16
|
"repository": {
|
|
17
17
|
"type": "git",
|
|
@@ -27,5 +27,5 @@
|
|
|
27
27
|
"design-system",
|
|
28
28
|
"twig"
|
|
29
29
|
],
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "a46bb6bc12771da4667516dc7b0665b00504ade2"
|
|
31
31
|
}
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
- title: (string) (default: '')
|
|
5
5
|
- content: (string) (default: '')
|
|
6
6
|
- button: (button Object) (default: {})
|
|
7
|
+
- attributes (drupal attrs)
|
|
7
8
|
#}
|
|
8
9
|
|
|
9
10
|
{% set _title = title|default(false) %}
|
|
10
11
|
{% set _content = content|default('') %}
|
|
11
12
|
{% set _button = button|default({}) %}
|
|
12
|
-
{% set _modal = modal|default({}) %}
|
|
13
13
|
|
|
14
14
|
{% if attributes is empty %}
|
|
15
15
|
{% set attributes = create_attribute() %}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { withDesign } from "storybook-addon-designs";
|
|
2
|
+
import withCode from "@openeuropa/storybook-addon-code";
|
|
3
|
+
|
|
2
4
|
import { correctPaths } from "@openeuropa/bcl-story-utils";
|
|
3
5
|
import subscriptionBlock from "@openeuropa/bcl-subscription-block/subscription-block.html.twig";
|
|
4
6
|
import demoData from "@openeuropa/bcl-subscription-block/data.js";
|
|
5
7
|
|
|
6
8
|
export default {
|
|
7
9
|
title: "Compositions/Subscription Block",
|
|
8
|
-
decorators: [withDesign],
|
|
10
|
+
decorators: [withCode, withDesign],
|
|
9
11
|
parameters: {
|
|
10
12
|
layout: "fullscreen",
|
|
11
13
|
controls: { disable: true },
|