@comicrelief/component-library 7.11.1 → 7.11.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.
@@ -125,7 +125,7 @@ describe('Donate component', () => {
125
125
  .click();
126
126
  cy.get('@container')
127
127
  .find('[id="mship-2--MoneyBuy-userInput"]')
128
- .should('have.value', '20')
128
+ .should('have.value', '8888')
129
129
  .clear()
130
130
  .type(' ');
131
131
  cy.get('@container')
@@ -27,10 +27,9 @@ const desktopPictures = require('../../../styleguide/data/data').defaultData;
27
27
  />;
28
28
  ```
29
29
 
30
- ## Form align left, with custom message after choosing an "Other amount" to donate.
31
-
30
+ ## Form align left, with custom message after choosing an "Other amount" to donate, high value cart.
32
31
  ```js
33
- import data from './dev-data/data';
32
+ import data from './dev-data/data-high-value';
34
33
  const mobilePictures = require('../../../styleguide/data/data').mobileImages;
35
34
  const desktopPictures = require('../../../styleguide/data/data').defaultData;
36
35
 
@@ -127,7 +127,7 @@ exports.Legend = Legend;
127
127
  var MoneyBuys = _styledComponents.default.div.withConfig({
128
128
  displayName: "Donatestyle__MoneyBuys",
129
129
  componentId: "sc-8rjm3t-11"
130
- })(["display:flex;justify-content:space-between;flex-direction:column;margin-bottom:", ";", "{flex-direction:row;}label{flex:0 0 30%;margin-bottom:", ";", "{margin-bottom:0;}input{cursor:pointer;}}"], (0, _spacing.default)('l'), (0, _size.media)('small'), (0, _spacing.default)('sm'), (0, _size.media)('small'));
130
+ })(["display:flex;justify-content:space-between;flex-direction:column;margin-bottom:", ";", "{flex-direction:row;}label{flex:0 0 30%;margin-bottom:", ";", "{margin-bottom:0;}input{cursor:pointer;padding:", " ", ";}}"], (0, _spacing.default)('l'), (0, _size.media)('small'), (0, _spacing.default)('sm'), (0, _size.media)('small'), (0, _spacing.default)('m'), (0, _spacing.default)('sm'));
131
131
 
132
132
  exports.MoneyBuys = MoneyBuys;
133
133
 
@@ -240,6 +240,7 @@ exports[`Monthly donation renders correctly 1`] = `
240
240
 
241
241
  .c17 label input {
242
242
  cursor: pointer;
243
+ padding: 1.5rem 0.5rem;
243
244
  }
244
245
 
245
246
  .c24 {
@@ -1119,6 +1120,7 @@ exports[`Single donation renders correctly 1`] = `
1119
1120
 
1120
1121
  .c11 label input {
1121
1122
  cursor: pointer;
1123
+ padding: 1.5rem 0.5rem;
1122
1124
  }
1123
1125
 
1124
1126
  .c19 {
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _default = {
8
+ cartId: '1-4-the-high-rollers',
9
+ singleGiving: {
10
+ moneybuys: [{
11
+ description: 'a pregnant woman in Uganda to have access to a birth kit so she can have a clean, safe delivery.',
12
+ value: 7777
13
+ }, {
14
+ description: 'a support worker to visit 10 isolated young mums with postnatal depression in the UK.',
15
+ value: 8888
16
+ }, {
17
+ description: 'clothes for a child who has had to leave their possessions behind while escaping domestic abuse.',
18
+ value: 9999
19
+ }]
20
+ },
21
+ regularGiving: {
22
+ moneybuys: [{
23
+ description: 'a regular supply of toiletries for someone living in a refugee camp in Serbia.',
24
+ value: 1111
25
+ }, {
26
+ description: 'a potentially lifesaving call for a man at risk of suicide in the UK.',
27
+ value: 2222
28
+ }, {
29
+ description: 'the distribution of enough surplus food for a school breakfast club to feed 80 children.',
30
+ value: 3333
31
+ }]
32
+ }
33
+ };
34
+ exports.default = _default;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@comicrelief/component-library",
3
3
  "author": "Comic Relief Engineering Team",
4
- "version": "7.11.1",
4
+ "version": "7.11.2",
5
5
  "main": "dist/index.js",
6
6
  "license": "ISC",
7
7
  "jest": {
@@ -27,10 +27,9 @@ const desktopPictures = require('../../../styleguide/data/data').defaultData;
27
27
  />;
28
28
  ```
29
29
 
30
- ## Form align left, with custom message after choosing an "Other amount" to donate.
31
-
30
+ ## Form align left, with custom message after choosing an "Other amount" to donate, high value cart.
32
31
  ```js
33
- import data from './dev-data/data';
32
+ import data from './dev-data/data-high-value';
34
33
  const mobilePictures = require('../../../styleguide/data/data').mobileImages;
35
34
  const desktopPictures = require('../../../styleguide/data/data').defaultData;
36
35
 
@@ -152,6 +152,7 @@ const MoneyBuys = styled.div`
152
152
  }
153
153
  input {
154
154
  cursor: pointer;
155
+ padding: ${spacing('m')} ${spacing('sm')};
155
156
  }
156
157
  }
157
158
  `;
@@ -240,6 +240,7 @@ exports[`Monthly donation renders correctly 1`] = `
240
240
 
241
241
  .c17 label input {
242
242
  cursor: pointer;
243
+ padding: 1.5rem 0.5rem;
243
244
  }
244
245
 
245
246
  .c24 {
@@ -1119,6 +1120,7 @@ exports[`Single donation renders correctly 1`] = `
1119
1120
 
1120
1121
  .c11 label input {
1121
1122
  cursor: pointer;
1123
+ padding: 1.5rem 0.5rem;
1122
1124
  }
1123
1125
 
1124
1126
  .c19 {
@@ -0,0 +1,41 @@
1
+ export default {
2
+ cartId: '1-4-the-high-rollers',
3
+ singleGiving: {
4
+ moneybuys: [
5
+ {
6
+ description:
7
+ 'a pregnant woman in Uganda to have access to a birth kit so she can have a clean, safe delivery.',
8
+ value: 7777
9
+ },
10
+ {
11
+ description:
12
+ 'a support worker to visit 10 isolated young mums with postnatal depression in the UK.',
13
+ value: 8888
14
+ },
15
+ {
16
+ description:
17
+ 'clothes for a child who has had to leave their possessions behind while escaping domestic abuse.',
18
+ value: 9999
19
+ }
20
+ ]
21
+ },
22
+ regularGiving: {
23
+ moneybuys: [
24
+ {
25
+ description:
26
+ 'a regular supply of toiletries for someone living in a refugee camp in Serbia.',
27
+ value: 1111
28
+ },
29
+ {
30
+ description:
31
+ 'a potentially lifesaving call for a man at risk of suicide in the UK.',
32
+ value: 2222
33
+ },
34
+ {
35
+ description:
36
+ 'the distribution of enough surplus food for a school breakfast club to feed 80 children.',
37
+ value: 3333
38
+ }
39
+ ]
40
+ }
41
+ };