@openeuropa/bcl-data-toasts 1.10.6 → 1.10.8

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/data--multiple.js CHANGED
@@ -1,4 +1,4 @@
1
- const drupalAttribute = require("drupal-attribute");
1
+ const { DrupalAttribute } = require("drupal-attribute");
2
2
 
3
3
  module.exports = {
4
4
  with_wrapper: true,
@@ -20,7 +20,7 @@ module.exports = {
20
20
  header: `<strong class="me-auto">Bootstrap</strong><small class="text-muted">2 seconds ago</small>`,
21
21
  body: "Heads up, toasts will stack automatically.",
22
22
  close_aria_label: "Close",
23
- attributes: new drupalAttribute().addClass("test-class"),
23
+ attributes: new DrupalAttribute().addClass("test-class"),
24
24
  },
25
25
  ],
26
26
  };
package/data.js CHANGED
@@ -1,14 +1,21 @@
1
+ const { DrupalAttribute } = require("drupal-attribute");
2
+
1
3
  module.exports = {
2
4
  toasts: [
3
5
  {
4
6
  role: "alert",
5
7
  aria_live: "assertive",
6
- with_close: false,
8
+ with_close: true,
9
+ header: "Toast title",
10
+ header_attributes: new DrupalAttribute().addClass("test-class"),
11
+ button_attributes: new DrupalAttribute().addClass("test-class"),
7
12
  body: `Hello, world! This is a toast message.
8
13
  <div class="mt-2 pt-2 border-top">
9
14
  <button type="button" class="btn btn-primary btn-sm me-1">Take action</button>
10
15
  <button type="button" class="btn btn-secondary btn-sm" data-bs-dismiss="toast">Close</button>
11
16
  </div>`,
17
+ body_attributes: new DrupalAttribute().addClass("test-class"),
18
+ custom_content: "<p>Toast custom content.</p>",
12
19
  },
13
20
  ],
14
21
  };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@openeuropa/bcl-data-toasts",
3
3
  "author": "European Commission",
4
4
  "license": "EUPL-1.2",
5
- "version": "1.10.6",
5
+ "version": "1.10.8",
6
6
  "description": "OE Toasts data",
7
7
  "publishConfig": {
8
8
  "access": "public"
@@ -20,5 +20,5 @@
20
20
  "component-library",
21
21
  "design-system"
22
22
  ],
23
- "gitHead": "f2c1911b328b12531079c209ecada73a505713c2"
23
+ "gitHead": "9c2e64443ae179948cbf748c41d438af7a0f2421"
24
24
  }