@openeuropa/bcl-data-card 0.1.2 → 0.1.202408021145

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,13 +1,8 @@
1
+ const drupalAttribute = require("drupal-attribute");
2
+
1
3
  module.exports = {
2
4
  horizontal: true,
3
- horizontal_grid: {
4
- left_col: 4,
5
- right_col: 8,
6
- gutter: 0,
7
- },
8
- title: {
9
- content: "Title card",
10
- },
5
+ title: "Title card",
11
6
  subtitle: {
12
7
  content: "Subtitle card",
13
8
  classes: "mb-2",
@@ -16,11 +11,11 @@ module.exports = {
16
11
  content: "Text card with longer text which is supported",
17
12
  classes: "mb-2",
18
13
  },
19
- extra_classes: "w-50",
20
14
  image: {
21
15
  path: "https://picsum.photos/seed/1019/400/600",
22
16
  alt: "alt img",
23
17
  position: "top",
24
18
  },
25
19
  content: "<button class='btn btn-primary'>Custom action</button>",
20
+ attributes: new drupalAttribute().addClass("w-50"),
26
21
  };
package/data.js CHANGED
@@ -1,22 +1,34 @@
1
+ const drupalAttribute = require("drupal-attribute");
2
+
1
3
  module.exports = {
2
- title: {
3
- content: "Title card",
4
- },
4
+ title: "Title card",
5
5
  subtitle: {
6
6
  content: "Subtitle card",
7
7
  classes: "mb-2",
8
8
  },
9
+ badges: [
10
+ {
11
+ label: "I'm a badge",
12
+ outline: true,
13
+ rounded_pill: true,
14
+ },
15
+ {
16
+ label: "I'm also a badge",
17
+ outline: true,
18
+ rounded_pill: true,
19
+ attributes: new drupalAttribute().addClass("test-class"),
20
+ },
21
+ ],
9
22
  text: {
10
23
  content: "Text card with longer text which is supported",
11
24
  classes: "mb-2",
12
25
  },
13
- extra_classes: "w-25",
14
26
  image: {
15
27
  path: "https://picsum.photos/seed/1002/600/400",
16
28
  alt: "alt img",
17
29
  position: "top",
18
30
  },
19
- content: "<button class='btn btn-primary'>Custom action</button>",
20
31
  card_header: "Header of card",
21
32
  card_footer: "Footer of card",
33
+ attributes: new drupalAttribute().addClass("w-25"),
22
34
  };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@openeuropa/bcl-data-card",
3
3
  "author": "European Commission",
4
4
  "license": "EUPL-1.2",
5
- "version": "0.1.2",
5
+ "version": "0.1.202408021145",
6
6
  "description": "OE - BCL data card",
7
7
  "publishConfig": {
8
8
  "access": "public"
@@ -21,5 +21,5 @@
21
21
  "design-system",
22
22
  "twig"
23
23
  ],
24
- "gitHead": "b242dcb5ed9578fcd212c98cf722eabc845d313b"
24
+ "gitHead": "7ee2013f7f64a70ddfa35228a9a65967dd71eec3"
25
25
  }