@comicrelief/component-library 7.26.0 → 7.27.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.
@@ -493,4 +493,32 @@ const desktopPictures = require('../../../styleguide/data/data').defaultData;
493
493
  title="Donate Now"
494
494
  subtitle="Please help us fund life-changing projects in the UK and around the world."
495
495
  />;
496
+ ```
497
+
498
+ ## Monthly ONLY, no moneybuys
499
+
500
+ ```js
501
+ import data from './dev-data/data-monthly';
502
+ const mobilePictures = require('../../../styleguide/data/data').mobileImages;
503
+ const desktopPictures = require('../../../styleguide/data/data').defaultData;
504
+
505
+ <Donate
506
+ alt="Background image"
507
+ mobileBackgroundColor="deep_violet_dark"
508
+ desktopOverlayColor="red"
509
+ submitButtonColor="blue_dark"
510
+ formAlignRight={true}
511
+ imageLow={desktopPictures.imageLow}
512
+ images={desktopPictures.images}
513
+ mobileImageLow={mobilePictures.imageLow}
514
+ mobileImages={mobilePictures.images}
515
+ data={data}
516
+ mbshipID="mship-15"
517
+ donateLink="https://donation.comicrelief.com/"
518
+ clientID="donate"
519
+ cartID="default-comicrelief"
520
+ title="Donate Now"
521
+ subtitle="Please help us fund life-changing projects in the UK and around the world."
522
+ noMoneyBuys
523
+ />;
496
524
  ```
@@ -213,10 +213,7 @@ const Signup = _ref => {
213
213
  tag: "p"
214
214
  }, "Please enter an amount between \xA31 and \xA325000 and up to 2 decimal places"), additionalCopy && /*#__PURE__*/_react.default.createElement("p", {
215
215
  className: "additional-copy"
216
- }, /*#__PURE__*/_react.default.createElement("strong", null, additionalCopy)), noMoneyBuys ? /*#__PURE__*/_react.default.createElement(_Donate.Button, {
217
- type: "submit",
218
- color: submitButtonColor
219
- }, errorMsg ? 'Donate' : "Donate \xA3".concat(amountDonate)) : /*#__PURE__*/_react.default.createElement(_Donate.Button, {
216
+ }, /*#__PURE__*/_react.default.createElement("strong", null, additionalCopy)), /*#__PURE__*/_react.default.createElement(_Donate.Button, {
220
217
  type: "submit",
221
218
  color: submitButtonColor,
222
219
  ref: buttonRef
@@ -640,7 +640,7 @@ exports[`"Single Giving, No Money Buys, with overridden manual input value" rend
640
640
  color="red"
641
641
  type="submit"
642
642
  >
643
- Donate £345.67
643
+ Donate £345.67 now
644
644
  </button>
645
645
  </fieldset>
646
646
  </form>
@@ -2456,7 +2456,7 @@ exports[`Single donation with no Money Buys renders correctly 1`] = `
2456
2456
  color="red"
2457
2457
  type="submit"
2458
2458
  >
2459
- Donate £10
2459
+ Donate £10 monthly
2460
2460
  </button>
2461
2461
  </fieldset>
2462
2462
  </form>
@@ -48,6 +48,10 @@ const colors = {
48
48
  rnd_23_yellow: '#FFE300',
49
49
  rnd_23_pink: '#EDB4D3',
50
50
  rnd_23_black: '#2B3737',
51
+ rnd_24_red_dark: '#A11B22',
52
+ rnd_24_teal_dark: '#2B7C77',
53
+ rnd_24_pink_dark: '#A67E94',
54
+ rnd_24_blue: '#3367AF',
51
55
  teal: '#4ECDBE',
52
56
  teal_dark: '#13767C',
53
57
  teal_light: '#86E4E9',
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.26.0",
4
+ "version": "7.27.0",
5
5
  "main": "dist/index.js",
6
6
  "license": "ISC",
7
7
  "jest": {
@@ -493,4 +493,32 @@ const desktopPictures = require('../../../styleguide/data/data').defaultData;
493
493
  title="Donate Now"
494
494
  subtitle="Please help us fund life-changing projects in the UK and around the world."
495
495
  />;
496
+ ```
497
+
498
+ ## Monthly ONLY, no moneybuys
499
+
500
+ ```js
501
+ import data from './dev-data/data-monthly';
502
+ const mobilePictures = require('../../../styleguide/data/data').mobileImages;
503
+ const desktopPictures = require('../../../styleguide/data/data').defaultData;
504
+
505
+ <Donate
506
+ alt="Background image"
507
+ mobileBackgroundColor="deep_violet_dark"
508
+ desktopOverlayColor="red"
509
+ submitButtonColor="blue_dark"
510
+ formAlignRight={true}
511
+ imageLow={desktopPictures.imageLow}
512
+ images={desktopPictures.images}
513
+ mobileImageLow={mobilePictures.imageLow}
514
+ mobileImages={mobilePictures.images}
515
+ data={data}
516
+ mbshipID="mship-15"
517
+ donateLink="https://donation.comicrelief.com/"
518
+ clientID="donate"
519
+ cartID="default-comicrelief"
520
+ title="Donate Now"
521
+ subtitle="Please help us fund life-changing projects in the UK and around the world."
522
+ noMoneyBuys
523
+ />;
496
524
  ```
@@ -305,25 +305,13 @@ const Signup = ({
305
305
  </p>
306
306
  )}
307
307
 
308
- {noMoneyBuys ? (
309
- <Button
310
- type="submit"
311
- color={submitButtonColor}
312
- >
313
- {errorMsg
314
- ? 'Donate'
315
- : `Donate £${amountDonate}`}
316
- </Button>
317
- ) : (
318
- <Button
319
- type="submit"
320
- color={submitButtonColor}
321
- ref={buttonRef}
322
- >
323
- {renderButtonText()}
324
- </Button>
325
-
326
- )}
308
+ <Button
309
+ type="submit"
310
+ color={submitButtonColor}
311
+ ref={buttonRef}
312
+ >
313
+ {renderButtonText()}
314
+ </Button>
327
315
 
328
316
  </OuterFieldset>
329
317
  </Form>
@@ -640,7 +640,7 @@ exports[`"Single Giving, No Money Buys, with overridden manual input value" rend
640
640
  color="red"
641
641
  type="submit"
642
642
  >
643
- Donate £345.67
643
+ Donate £345.67 now
644
644
  </button>
645
645
  </fieldset>
646
646
  </form>
@@ -2456,7 +2456,7 @@ exports[`Single donation with no Money Buys renders correctly 1`] = `
2456
2456
  color="red"
2457
2457
  type="submit"
2458
2458
  >
2459
- Donate £10
2459
+ Donate £10 monthly
2460
2460
  </button>
2461
2461
  </fieldset>
2462
2462
  </form>
@@ -42,6 +42,10 @@ const colors = {
42
42
  rnd_23_yellow: '#FFE300',
43
43
  rnd_23_pink: '#EDB4D3',
44
44
  rnd_23_black: '#2B3737',
45
+ rnd_24_red_dark: '#A11B22',
46
+ rnd_24_teal_dark: '#2B7C77',
47
+ rnd_24_pink_dark: '#A67E94',
48
+ rnd_24_blue: '#3367AF',
45
49
  teal: '#4ECDBE',
46
50
  teal_dark: '#13767C',
47
51
  teal_light: '#86E4E9',