@openeuropa/bcl-subscription 0.21.0 → 0.22.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.
@@ -852,11 +852,11 @@ exports[`OE - Subscription renders correctly 1`] = `
852
852
  />
853
853
  </div>
854
854
  <div
855
- class="success-alert d-none mb-0 alert alert-success d-flex align-items-center fade show"
855
+ class="success-alert d-none mb-0 alert alert-success d-flex align-items-center fade show text-dark"
856
856
  role="alert"
857
857
  >
858
858
  <svg
859
- class="flex-shrink-0 me-3 mt-1 align-self-start bi icon--s"
859
+ class="flex-shrink-0 me-3 mt-1 align-self-start text-success bi icon--s"
860
860
  >
861
861
  <use
862
862
  xlink:href="/icons.svg#check-circle-fill"
@@ -874,11 +874,11 @@ exports[`OE - Subscription renders correctly 1`] = `
874
874
  </div>
875
875
  </div>
876
876
  <div
877
- class="error-alert d-none mb-0 alert alert-danger d-flex align-items-center fade show"
877
+ class="error-alert d-none mb-0 alert alert-danger d-flex align-items-center fade show text-dark"
878
878
  role="alert"
879
879
  >
880
880
  <svg
881
- class="flex-shrink-0 me-3 mt-1 align-self-start bi icon--s"
881
+ class="flex-shrink-0 me-3 mt-1 align-self-start text-danger bi icon--s"
882
882
  >
883
883
  <use
884
884
  xlink:href="/icons.svg#dash-circle-fill"
package/package.json CHANGED
@@ -2,13 +2,13 @@
2
2
  "name": "@openeuropa/bcl-subscription",
3
3
  "author": "European Commission",
4
4
  "license": "EUPL-1.2",
5
- "version": "0.21.0",
5
+ "version": "0.22.0",
6
6
  "publishConfig": {
7
7
  "access": "public"
8
8
  },
9
9
  "description": "OE - BCL subscription",
10
10
  "dependencies": {
11
- "@openeuropa/bcl-subscription-block": "^0.21.0"
11
+ "@openeuropa/bcl-subscription-block": "^0.22.0"
12
12
  },
13
13
  "repository": {
14
14
  "type": "git",
@@ -24,5 +24,5 @@
24
24
  "design-system",
25
25
  "twig"
26
26
  ],
27
- "gitHead": "18c01b34ca76780f480c692c566dfe507d961ccf"
27
+ "gitHead": "57304ad94ae3c234f2f2b904208ce540a7a53f23"
28
28
  }
@@ -1,12 +1,18 @@
1
1
  import { withDesign } from "storybook-addon-designs";
2
+ import withCode from "@openeuropa/storybook-addon-code";
2
3
  import { within, userEvent } from "@storybook/testing-library";
3
4
  import isChromatic from "chromatic/isChromatic";
4
5
  import { correctPaths, initScrollspy } from "@openeuropa/bcl-story-utils";
5
- import header from "@openeuropa/bcl-data-header/data--simple";
6
- import footer from "@openeuropa/bcl-data-footer/data";
6
+ import {
7
+ headerSimple,
8
+ footer,
9
+ } from "@openeuropa/bcl-base-templates/data/layout";
10
+ import {
11
+ banner,
12
+ sidebar,
13
+ } from "@openeuropa/bcl-base-templates/data/content-page";
14
+
7
15
  import content from "@openeuropa/bcl-news/data/data--content";
8
- import banner from "@openeuropa/bcl-content-banner/data/data";
9
- import sidebar from "@openeuropa/bcl-inpage-navigation/data/data--simple";
10
16
  import blockData from "@openeuropa/bcl-subscription-block/data";
11
17
  import drupalAttribute from "drupal-attribute";
12
18
 
@@ -24,7 +30,7 @@ if (isChromatic()) {
24
30
  const demoData = {
25
31
  content_type: "subscription",
26
32
  page_title: "Subscription",
27
- header: header,
33
+ header: headerSimple,
28
34
  footer: {
29
35
  ...footer,
30
36
  attributes: new drupalAttribute().addClass("mt-4"),
@@ -121,7 +127,7 @@ const errorState = (story) => {
121
127
 
122
128
  export default {
123
129
  title: "Features/Subscription",
124
- decorators: [withDesign, initScrollspy],
130
+ decorators: [withCode, withDesign, initScrollspy],
125
131
  parameters: {
126
132
  layout: "fullscreen",
127
133
  controls: { disable: true },
@@ -1,9 +1,14 @@
1
1
  import { renderTwigFileAsNode } from "@openeuropa/bcl-test-utils";
2
- import header from "@openeuropa/bcl-data-header/data--simple";
3
- import footer from "@openeuropa/bcl-data-footer/data";
2
+ import {
3
+ headerSimple,
4
+ footer,
5
+ } from "@openeuropa/bcl-base-templates/data/layout";
6
+ import {
7
+ banner,
8
+ sidebar,
9
+ } from "@openeuropa/bcl-base-templates/data/content-page";
10
+
4
11
  import content from "@openeuropa/bcl-news/data/data--content";
5
- import banner from "@openeuropa/bcl-content-banner/data/data";
6
- import sidebar from "@openeuropa/bcl-inpage-navigation/data/data--simple";
7
12
  import blockData from "@openeuropa/bcl-subscription-block/data";
8
13
  import drupalAttribute from "drupal-attribute";
9
14
 
@@ -13,7 +18,7 @@ import modalData from "@openeuropa/bcl-subscription/data/data--modal";
13
18
  const demoData = {
14
19
  content_type: "subscription",
15
20
  page_title: "Subscription",
16
- header: header,
21
+ header: headerSimple,
17
22
  footer: {
18
23
  ...footer,
19
24
  attributes: new drupalAttribute().addClass("mt-4"),