@comicrelief/component-library 8.5.1 → 8.6.1

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.
Files changed (31) hide show
  1. package/dist/components/Organisms/MarketingPreferencesDS/MarketingPreferencesDS.style.js +58 -51
  2. package/dist/components/Organisms/MarketingPreferencesDS/_MarketingPreferencesDS.js +9 -9
  3. package/dist/components/Organisms/MarketingPreferencesDS/{_CheckAnswer.js → _OptInCheckbox.js} +6 -4
  4. package/dist/components/Organisms/MarketingPreferencesDS/assets/Email--white.svg +3 -0
  5. package/dist/components/Organisms/MarketingPreferencesDS/assets/Email.svg +3 -0
  6. package/dist/components/Organisms/MarketingPreferencesDS/assets/Phone--white.svg +5 -0
  7. package/dist/components/Organisms/MarketingPreferencesDS/assets/Phone.svg +5 -0
  8. package/dist/components/Organisms/MarketingPreferencesDS/assets/Post--white.svg +3 -0
  9. package/dist/components/Organisms/MarketingPreferencesDS/assets/Post.svg +3 -0
  10. package/dist/components/Organisms/MarketingPreferencesDS/assets/Text--white.svg +3 -0
  11. package/dist/components/Organisms/MarketingPreferencesDS/assets/Text.svg +3 -0
  12. package/package.json +1 -1
  13. package/src/components/Organisms/MarketingPreferencesDS/MarketingPreferencesDS.style.js +110 -23
  14. package/src/components/Organisms/MarketingPreferencesDS/_MarketingPreferencesDS.js +18 -18
  15. package/src/components/Organisms/MarketingPreferencesDS/{_CheckAnswer.js → _OptInCheckbox.js} +9 -5
  16. package/src/components/Organisms/MarketingPreferencesDS/assets/Email--white.svg +3 -0
  17. package/src/components/Organisms/MarketingPreferencesDS/assets/Email.svg +3 -0
  18. package/src/components/Organisms/MarketingPreferencesDS/assets/Phone--white.svg +5 -0
  19. package/src/components/Organisms/MarketingPreferencesDS/assets/Phone.svg +5 -0
  20. package/src/components/Organisms/MarketingPreferencesDS/assets/Post--white.svg +3 -0
  21. package/src/components/Organisms/MarketingPreferencesDS/assets/Post.svg +3 -0
  22. package/src/components/Organisms/MarketingPreferencesDS/assets/Text--white.svg +3 -0
  23. package/src/components/Organisms/MarketingPreferencesDS/assets/Text.svg +3 -0
  24. package/dist/components/Organisms/MarketingPreferencesDS/assets/CR_Mail.svg +0 -1
  25. package/dist/components/Organisms/MarketingPreferencesDS/assets/CR_Phone.svg +0 -1
  26. package/dist/components/Organisms/MarketingPreferencesDS/assets/CR_Post.svg +0 -1
  27. package/dist/components/Organisms/MarketingPreferencesDS/assets/CR_SMS.svg +0 -1
  28. package/src/components/Organisms/MarketingPreferencesDS/assets/CR_Mail.svg +0 -1
  29. package/src/components/Organisms/MarketingPreferencesDS/assets/CR_Phone.svg +0 -1
  30. package/src/components/Organisms/MarketingPreferencesDS/assets/CR_Post.svg +0 -1
  31. package/src/components/Organisms/MarketingPreferencesDS/assets/CR_SMS.svg +0 -1
@@ -5,127 +5,134 @@ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWild
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.TopCopyWrapper = exports.ShowHideInputWrapper = exports.OuterWrapper = exports.MPTextInput = exports.Head = exports.FormField = exports.ExtraInfo = exports.CheckLabel = exports.CheckInput = exports.CheckContainer = exports.BottomCopyWrapper = void 0;
8
+ exports.TopCopyWrapper = exports.ShowHideInputWrapper = exports.OuterWrapper = exports.MPTextInput = exports.FormField = exports.ExtraInfo = exports.CheckboxWrapper = exports.CheckLabel = exports.CheckInput = exports.CheckContainer = exports.BottomCopyWrapper = exports.AssociatedFieldsName = void 0;
9
9
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
10
10
  var _spacing = _interopRequireDefault(require("../../../theme/shared/spacing"));
11
11
  var _CR_Tick_black = _interopRequireDefault(require("./assets/CR_Tick_black.svg"));
12
12
  var _TextInput = _interopRequireDefault(require("./_TextInput"));
13
+ var _Email = _interopRequireDefault(require("./assets/Email.svg"));
14
+ var _Phone = _interopRequireDefault(require("./assets/Phone.svg"));
15
+ var _Post = _interopRequireDefault(require("./assets/Post.svg"));
16
+ var _Text = _interopRequireDefault(require("./assets/Text.svg"));
17
+ var _EmailWhite = _interopRequireDefault(require("./assets/Email--white.svg"));
18
+ var _PhoneWhite = _interopRequireDefault(require("./assets/Phone--white.svg"));
19
+ var _PostWhite = _interopRequireDefault(require("./assets/Post--white.svg"));
20
+ var _TextWhite = _interopRequireDefault(require("./assets/Text--white.svg"));
13
21
  const OuterWrapper = exports.OuterWrapper = _styledComponents.default.div.withConfig({
14
22
  displayName: "MarketingPreferencesDSstyle__OuterWrapper",
15
23
  componentId: "sc-68n85q-0"
16
- })(["display:flex;flex-direction:column;@media ", "{flex-direction:row;flex-wrap:wrap;}"], _ref => {
17
- let {
18
- theme
19
- } = _ref;
20
- return theme.allBreakpoints('M');
21
- });
24
+ })(["display:flex;flex-direction:column;&:after{position:absolute;width:0;height:0;overflow:hidden;z-index:-1;content:url(", ") url(", ") url(", ") url(", ");}"], _EmailWhite.default, _PhoneWhite.default, _PostWhite.default, _TextWhite.default);
22
25
  const TopCopyWrapper = exports.TopCopyWrapper = _styledComponents.default.div.withConfig({
23
26
  displayName: "MarketingPreferencesDSstyle__TopCopyWrapper",
24
27
  componentId: "sc-68n85q-1"
25
- })(["margin:", " 0;display:flex;width:100%;@media ", "{padding:10px;}"], (0, _spacing.default)('l'), _ref2 => {
28
+ })(["margin:", " 0;display:flex;width:100%;@media ", "{padding:10px;}"], (0, _spacing.default)('l'), _ref => {
26
29
  let {
27
30
  theme
28
- } = _ref2;
31
+ } = _ref;
29
32
  return theme.allBreakpoints('M');
30
33
  });
31
34
  const BottomCopyWrapper = exports.BottomCopyWrapper = _styledComponents.default.div.withConfig({
32
35
  displayName: "MarketingPreferencesDSstyle__BottomCopyWrapper",
33
36
  componentId: "sc-68n85q-2"
34
37
  })(["margin:", " 0;"], (0, _spacing.default)('md'));
35
- const Head = exports.Head = _styledComponents.default.div.withConfig({
36
- displayName: "MarketingPreferencesDSstyle__Head",
38
+ const CheckboxWrapper = exports.CheckboxWrapper = _styledComponents.default.div.withConfig({
39
+ displayName: "MarketingPreferencesDSstyle__CheckboxWrapper",
37
40
  componentId: "sc-68n85q-3"
38
41
  })(["display:flex;justify-content:space-between;flex-direction:column;"]);
42
+ const AssociatedFieldsName = exports.AssociatedFieldsName = _styledComponents.default.span.withConfig({
43
+ displayName: "MarketingPreferencesDSstyle__AssociatedFieldsName",
44
+ componentId: "sc-68n85q-4"
45
+ })(["padding-left:40px;line-height:30px;background-repeat:no-repeat;background-position:left center;&.icon-mp_permissionEmail{background-image:url(", ")}&.icon-mp_permissionPhone{background-image:url(", ")}&.icon-mp_permissionPost{background-image:url(", ")}&.icon-mp_permissionSMS{background-image:url(", ")}"], _Email.default, _Phone.default, _Post.default, _Text.default);
39
46
  const FormField = exports.FormField = _styledComponents.default.div.withConfig({
40
47
  displayName: "MarketingPreferencesDSstyle__FormField",
41
- componentId: "sc-68n85q-4"
42
- })(["", ""], _ref3 => {
48
+ componentId: "sc-68n85q-5"
49
+ })(["", ""], _ref2 => {
43
50
  let {
44
51
  theme
45
- } = _ref3;
46
- return (0, _styledComponents.css)(["position:relative;margin-bottom:", ";width:100%;display:flex;flex-direction:column;@media ", "{width:50%;padding:10px;}label{position:relative;margin-bottom:", ";width:100%;color:", ";}h3{position:relative;margin-bottom:", ";&:before{position:absolute;top:0;left:0;width:24px;height:24px;content:'';}}"], (0, _spacing.default)('md'), theme.allBreakpoints('M'), (0, _spacing.default)('md'), theme.color('grey_dark'), (0, _spacing.default)('md'));
52
+ } = _ref2;
53
+ return (0, _styledComponents.css)(["position:relative;margin-bottom:", ";width:100%;display:flex;flex-direction:column;padding:", ";border:1px solid ", ";;border-radius:10px;background-color:", ";transition:background-color 0.3s,color 0.3s;&:hover{background-color:", ";}&.selected{background-color:", ";span.icon-mp_permissionEmail{background-image:url(", ");}span.icon-mp_permissionPhone{background-image:url(", ");}span.icon-mp_permissionPost{background-image:url(", ");}span.icon-mp_permissionSMS{background-image:url(", ");}> div{label,> span{color:", ";}}&:hover{background-color:#161a85;}}label{position:relative;margin-bottom:0;width:100%;color:", ";font-weight:600;display:flex;justify-content:space-between;}h3{position:relative;margin-bottom:", ";&:before{position:absolute;top:0;left:0;width:24px;height:24px;content:'';}}"], (0, _spacing.default)('md'), (0, _spacing.default)('m'), theme.color('grey'), theme.color('grey_light'), theme.color('grey_medium'), theme.color('blue_donate'), _EmailWhite.default, _PhoneWhite.default, _PostWhite.default, _TextWhite.default, theme.color('white'), theme.color('black'), (0, _spacing.default)('md'));
47
54
  });
48
55
  const CheckContainer = exports.CheckContainer = _styledComponents.default.div.withConfig({
49
56
  displayName: "MarketingPreferencesDSstyle__CheckContainer",
50
- componentId: "sc-68n85q-5"
51
- })(["", ""], _ref4 => {
57
+ componentId: "sc-68n85q-6"
58
+ })(["", ""], _ref3 => {
52
59
  let {
53
60
  theme
54
- } = _ref4;
61
+ } = _ref3;
55
62
  return (0, _styledComponents.css)(["width:100%;display:flex;justify-content:space-between;font-size:", ";font-family:", ";"], theme.fontSize('md'), theme.fontFamilies(theme.font.regular));
56
63
  });
57
64
  const CheckLabel = exports.CheckLabel = _styledComponents.default.label.withConfig({
58
65
  displayName: "MarketingPreferencesDSstyle__CheckLabel",
59
- componentId: "sc-68n85q-6"
60
- })(["", ""], _ref5 => {
66
+ componentId: "sc-68n85q-7"
67
+ })(["", ""], _ref4 => {
61
68
  let {
62
69
  theme
63
- } = _ref5;
70
+ } = _ref4;
64
71
  return (0, _styledComponents.css)(["display:flex;align-items:center;font-size:", ";@media ", "{font-size:", ";}"], theme.fontSize('xs'), theme.allBreakpoints('M'), theme.fontSize('s'));
65
72
  });
66
73
  const CheckInput = exports.CheckInput = _styledComponents.default.input.withConfig({
67
74
  displayName: "MarketingPreferencesDSstyle__CheckInput",
68
- componentId: "sc-68n85q-7"
69
- })(["font-size:", ";display:block;box-sizing:border-box;opacity:0;position:absolute;width:100%;height:100%;left:0;top:0;margin:0;border:1px solid ", ";+ span{margin-right:10px;width:30px;height:30px;background-color:", ";border:1px solid ", ";float:left;border-radius:8px;@media ", "{margin-right:15px;}}:checked + span{background:url(", ") no-repeat center;background-color:", ";background-size:contain;}"], _ref6 => {
75
+ componentId: "sc-68n85q-8"
76
+ })(["font-size:", ";display:block;box-sizing:border-box;opacity:0;position:absolute;width:100%;height:100%;left:0;top:0;margin:0;border:1px solid ", ";+ span{width:30px;height:30px;background-color:", ";border:1px solid ", ";float:left;border-radius:8px;}:checked + span{background:url(", ") no-repeat center ", ";;background-size:contain;}"], _ref5 => {
70
77
  let {
71
78
  theme
72
- } = _ref6;
79
+ } = _ref5;
73
80
  return theme.fontSize('sm');
81
+ }, _ref6 => {
82
+ let {
83
+ theme
84
+ } = _ref6;
85
+ return theme.color('grey_for_forms');
74
86
  }, _ref7 => {
75
87
  let {
76
88
  theme
77
89
  } = _ref7;
78
- return theme.color('grey_for_forms');
90
+ return theme.color('white');
79
91
  }, _ref8 => {
80
92
  let {
81
93
  theme
82
94
  } = _ref8;
83
- return theme.color('grey_light');
84
- }, _ref9 => {
85
- let {
86
- theme
87
- } = _ref9;
88
95
  return theme.color('black');
89
- }, _ref10 => {
96
+ }, _CR_Tick_black.default, _ref9 => {
90
97
  let {
91
98
  theme
92
- } = _ref10;
93
- return theme.allBreakpoints('M');
94
- }, _CR_Tick_black.default, _ref11 => {
95
- let {
96
- theme
97
- } = _ref11;
98
- return theme.color('grey_light');
99
+ } = _ref9;
100
+ return theme.color('white');
99
101
  });
100
102
  const ShowHideInputWrapper = exports.ShowHideInputWrapper = _styledComponents.default.div.withConfig({
101
103
  displayName: "MarketingPreferencesDSstyle__ShowHideInputWrapper",
102
- componentId: "sc-68n85q-8"
103
- })(["display:", ";width:100%;label{width:100%;border:none;padding:0;}"], _ref12 => {
104
+ componentId: "sc-68n85q-9"
105
+ })(["display:", ";width:100%;label{width:100%;border:none;padding:0;}"], _ref10 => {
104
106
  let {
105
107
  show
106
- } = _ref12;
108
+ } = _ref10;
107
109
  return show ? 'block' : 'none';
108
110
  });
109
111
  const ExtraInfo = exports.ExtraInfo = _styledComponents.default.span.withConfig({
110
112
  displayName: "MarketingPreferencesDSstyle__ExtraInfo",
111
- componentId: "sc-68n85q-9"
112
- })(["display:block;width:100%;font-size:1rem;text-transform:inherit;font-weight:normal;line-height:normal;font-family:'Montserrat',Helvetica,Arial,sans-serif;margin-bottom:0.5rem;color:", ";+ label{margin-top:20px;&[for=\"mp_email\"],&[for=\"mp_mobile\"],&[for=\"mp_phone\"]{> span:first-child{position:absolute;margin:-1px;padding:0;width:1px;height:1px;border:0;overflow:hidden;clip:rect(1px 1px 1px 1px);word-wrap:normal;}}"], _ref13 => {
113
+ componentId: "sc-68n85q-10"
114
+ })(["display:block;width:100%;font-size:1rem;text-transform:inherit;font-weight:normal;line-height:normal;font-family:'Montserrat',Helvetica,Arial,sans-serif;margin-bottom:0rem;margin-top:1rem;color:", ";+ label{margin-top:", ";margin-bottom:0;&[for=\"mp_email\"],&[for=\"mp_mobile\"],&[for=\"mp_phone\"]{> span:first-child{position:absolute;margin:-1px;padding:0;width:1px;height:1px;border:0;overflow:hidden;clip:rect(1px 1px 1px 1px);word-wrap:normal;}}"], _ref11 => {
113
115
  let {
114
116
  theme
115
- } = _ref13;
116
- return theme.color('grey_dark');
117
- });
117
+ } = _ref11;
118
+ return theme.color('black');
119
+ }, (0, _spacing.default)('md'));
118
120
  const MPTextInput = exports.MPTextInput = (0, _styledComponents.default)(_TextInput.default).withConfig({
119
121
  displayName: "MarketingPreferencesDSstyle__MPTextInput",
120
- componentId: "sc-68n85q-10"
121
- })(["input{border:1px solid ", ";;@media ", "{max-width:none;}}"], _ref14 => {
122
+ componentId: "sc-68n85q-11"
123
+ })(["> div + span span{margin-top:-20px;}> span{margin-bottom:.5rem;}input{border:1px solid ", ";background-color:", ";margin-bottom:10px;@media ", "{max-width:none;}}"], _ref12 => {
122
124
  let {
123
125
  theme
124
- } = _ref14;
126
+ } = _ref12;
125
127
  return theme.color('black');
126
- }, _ref15 => {
128
+ }, _ref13 => {
127
129
  let {
128
130
  theme
129
- } = _ref15;
131
+ } = _ref13;
132
+ return theme.color('white');
133
+ }, _ref14 => {
134
+ let {
135
+ theme
136
+ } = _ref14;
130
137
  return theme.allBreakpoints('M');
131
138
  });
@@ -21,7 +21,7 @@ var _isEmpty2 = _interopRequireDefault(require("lodash/isEmpty"));
21
21
  var _react = _interopRequireDefault(require("react"));
22
22
  var _propTypes = _interopRequireDefault(require("prop-types"));
23
23
  var _reactHookForm = require("react-hook-form");
24
- var _CheckAnswer = _interopRequireDefault(require("./_CheckAnswer"));
24
+ var _OptInCheckbox = _interopRequireDefault(require("./_OptInCheckbox"));
25
25
  var _DefaultCopy = require("./_DefaultCopy");
26
26
  var _MarketingPreferencesDS = require("./MarketingPreferencesDS.style");
27
27
  var _MarketingPrefsConfig = require("./_MarketingPrefsConfig");
@@ -93,8 +93,8 @@ const MarketingPreferencesDS = _ref => {
93
93
  return /*#__PURE__*/_react.default.createElement(_MarketingPreferencesDS.OuterWrapper, Object.assign({
94
94
  id: customId
95
95
  }, rest), copyTop && /*#__PURE__*/_react.default.createElement(_MarketingPreferencesDS.TopCopyWrapper, null, copyTop), !mp_permissionEmail.disableOption && /*#__PURE__*/_react.default.createElement(_MarketingPreferencesDS.FormField, {
96
- className: "field-email"
97
- }, /*#__PURE__*/_react.default.createElement(_MarketingPreferencesDS.Head, null, /*#__PURE__*/_react.default.createElement(_CheckAnswer.default, {
96
+ className: "field-email ".concat(emailChoice && 'selected')
97
+ }, /*#__PURE__*/_react.default.createElement(_MarketingPreferencesDS.CheckboxWrapper, null, /*#__PURE__*/_react.default.createElement(_OptInCheckbox.default, {
98
98
  mpValidationOptions: mpValidationOptions,
99
99
  name: "mp_permissionEmail",
100
100
  id: "mp_permissionEmail",
@@ -115,8 +115,8 @@ const MarketingPreferencesDS = _ref => {
115
115
  id: "mp_email",
116
116
  formContext: formContext
117
117
  })))), !mp_permissionPost.disableOption && /*#__PURE__*/_react.default.createElement(_MarketingPreferencesDS.FormField, {
118
- className: "field-post"
119
- }, /*#__PURE__*/_react.default.createElement(_MarketingPreferencesDS.Head, null, /*#__PURE__*/_react.default.createElement(_CheckAnswer.default, {
118
+ className: "field-post ".concat(postChoice && 'selected')
119
+ }, /*#__PURE__*/_react.default.createElement(_MarketingPreferencesDS.CheckboxWrapper, null, /*#__PURE__*/_react.default.createElement(_OptInCheckbox.default, {
120
120
  name: "mp_permissionPost",
121
121
  mpValidationOptions: mpValidationOptions,
122
122
  id: "mp_permissionPost",
@@ -169,8 +169,8 @@ const MarketingPreferencesDS = _ref => {
169
169
  id: "mp_country",
170
170
  formContext: formContext
171
171
  })))), !mp_permissionSMS.disableOption && /*#__PURE__*/_react.default.createElement(_MarketingPreferencesDS.FormField, {
172
- className: "field-sms"
173
- }, /*#__PURE__*/_react.default.createElement(_MarketingPreferencesDS.Head, null, /*#__PURE__*/_react.default.createElement(_CheckAnswer.default, {
172
+ className: "field-sms ".concat(smsChoice && 'selected')
173
+ }, /*#__PURE__*/_react.default.createElement(_MarketingPreferencesDS.CheckboxWrapper, null, /*#__PURE__*/_react.default.createElement(_OptInCheckbox.default, {
174
174
  name: "mp_permissionSMS",
175
175
  id: "mp_permissionSMS",
176
176
  mpValidationOptions: mpValidationOptions,
@@ -188,8 +188,8 @@ const MarketingPreferencesDS = _ref => {
188
188
  id: "mp_mobile",
189
189
  formContext: formContext
190
190
  })))), !mp_permissionPhone.disableOption && /*#__PURE__*/_react.default.createElement(_MarketingPreferencesDS.FormField, {
191
- className: "field-phone"
192
- }, /*#__PURE__*/_react.default.createElement(_MarketingPreferencesDS.Head, null, /*#__PURE__*/_react.default.createElement(_CheckAnswer.default, {
191
+ className: "field-phone ".concat(phoneChoice && 'selected')
192
+ }, /*#__PURE__*/_react.default.createElement(_MarketingPreferencesDS.CheckboxWrapper, null, /*#__PURE__*/_react.default.createElement(_OptInCheckbox.default, {
193
193
  name: "mp_permissionPhone",
194
194
  mpValidationOptions: mpValidationOptions,
195
195
  id: "mp_permissionPhone",
@@ -8,7 +8,7 @@ exports.default = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var _AssociatedFields = _interopRequireDefault(require("./_AssociatedFields"));
10
10
  var _MarketingPreferencesDS = require("./MarketingPreferencesDS.style");
11
- const CheckAnswer = _ref => {
11
+ const OptInCheckbox = _ref => {
12
12
  let {
13
13
  name,
14
14
  mpValidationOptions,
@@ -53,13 +53,15 @@ const CheckAnswer = _ref => {
53
53
  return /*#__PURE__*/_react.default.createElement(_MarketingPreferencesDS.CheckContainer, null, /*#__PURE__*/_react.default.createElement(_MarketingPreferencesDS.CheckLabel, {
54
54
  htmlFor: "".concat(name, "-yes"),
55
55
  userSelection: userSelection
56
- }, /*#__PURE__*/_react.default.createElement(_MarketingPreferencesDS.CheckInput, Object.assign({
56
+ }, /*#__PURE__*/_react.default.createElement(_MarketingPreferencesDS.AssociatedFieldsName, {
57
+ className: "icon-".concat(name)
58
+ }, _AssociatedFields.default[name].label), /*#__PURE__*/_react.default.createElement(_MarketingPreferencesDS.CheckInput, Object.assign({
57
59
  type: "checkbox",
58
60
  name: name,
59
61
  id: "".concat(name, "-yes"),
60
62
  value: "yes"
61
63
  }, register(name), {
62
64
  onChange: onChange
63
- })), /*#__PURE__*/_react.default.createElement("span", null), _AssociatedFields.default[name].label));
65
+ })), /*#__PURE__*/_react.default.createElement("span", null)));
64
66
  };
65
- var _default = exports.default = CheckAnswer;
67
+ var _default = exports.default = OptInCheckbox;
@@ -0,0 +1,3 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M22 3.5H2C1.4475 3.5 1 3.9475 1 4.5V19.5C1 20.052 1.448 20.5 2 20.5H22C22.552 20.5 23 20.052 23 19.5V4.5C23 3.9475 22.552 3.5 22 3.5ZM19.9495 5.5L12 12.6545L4.0505 5.5H19.9495ZM3 18.5V7.2455L11.331 14.7435C11.521 14.9145 11.7605 15 12 15C12.2395 15 12.479 14.9145 12.669 14.7435L21 7.2455V18.5H3Z" fill="#FFFFFF"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M22 3.5H2C1.4475 3.5 1 3.9475 1 4.5V19.5C1 20.052 1.448 20.5 2 20.5H22C22.552 20.5 23 20.052 23 19.5V4.5C23 3.9475 22.552 3.5 22 3.5ZM19.9495 5.5L12 12.6545L4.0505 5.5H19.9495ZM3 18.5V7.2455L11.331 14.7435C11.521 14.9145 11.7605 15 12 15C12.2395 15 12.479 14.9145 12.669 14.7435L21 7.2455V18.5H3Z" fill="#222222"/>
3
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M11.4995 3.5C11.4995 2.948 11.9475 2.5 12.4995 2.5C17.0415 2.5 21.4995 6.958 21.4995 11.5C21.4995 12.052 21.0515 12.5 20.4995 12.5C19.9475 12.5 19.4995 12.052 19.4995 11.5C19.4995 8.0325 15.967 4.5 12.4995 4.5C11.9475 4.5 11.4995 4.052 11.4995 3.5Z" fill="#FFFFFF"/>
3
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M19.8065 17.3886C18.012 15.5851 16.576 14.1631 14.882 14.2541C13.932 14.3056 13.071 14.8226 12.25 15.8346C12.0505 15.8816 11.1785 15.7606 9.70854 14.2906C8.23804 12.8201 8.11454 11.9496 8.16454 11.7491C9.17604 10.9286 9.69354 10.0676 9.74454 9.11755C9.83751 7.40352 8.41382 5.98733 6.61102 4.19403L6.60954 4.19255L6.20954 3.79305C5.93154 3.51505 5.51704 3.42655 5.15154 3.56405C3.32754 4.24805 2.08754 5.70855 1.66204 7.67605C0.960038 10.9181 2.54404 14.9526 5.79604 18.2046C8.53754 20.9466 11.8355 22.5026 14.7455 22.5026C15.2875 22.5026 15.816 22.4486 16.3245 22.3386C18.292 21.9121 19.752 20.6731 20.4365 18.8486C20.574 18.4816 20.4845 18.0676 20.207 17.7906L19.8065 17.3886ZM15.9005 20.3836C13.358 20.9351 9.94454 19.5246 7.20954 16.7901C4.47504 14.0556 3.06504 10.6441 3.61604 8.09905C3.78504 7.31805 4.21604 6.31955 5.29054 5.70055C6.59004 6.99305 7.79154 8.20805 7.74804 9.00955C7.72904 9.36455 7.43604 9.77105 6.87804 10.2181C6.45104 10.5596 6.19704 11.0826 6.16304 11.6896C6.11804 12.5036 6.45104 13.8611 8.29504 15.7046C10.139 17.5486 11.5 17.8816 12.3105 17.8366C12.918 17.8031 13.4405 17.5491 13.7815 17.1221C14.2285 16.5636 14.635 16.2706 14.99 16.2511C15.81 16.2126 17.007 17.4101 18.2985 18.7086C17.68 19.7831 16.6815 20.2141 15.9005 20.3836Z" fill="#FFFFFF"/>
4
+ <path d="M15.4995 11.5C15.4995 12.052 15.9475 12.5 16.4995 12.5C17.0515 12.5 17.4995 12.052 17.4995 11.5C17.4995 8.93 15.07 6.5 12.4995 6.5C11.9475 6.5 11.4995 6.948 11.4995 7.5C11.4995 8.052 11.9475 8.5 12.4995 8.5C13.9575 8.5 15.4995 10.042 15.4995 11.5Z" fill="#FFFFFF"/>
5
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M11.4995 3.5C11.4995 2.948 11.9475 2.5 12.4995 2.5C17.0415 2.5 21.4995 6.958 21.4995 11.5C21.4995 12.052 21.0515 12.5 20.4995 12.5C19.9475 12.5 19.4995 12.052 19.4995 11.5C19.4995 8.0325 15.967 4.5 12.4995 4.5C11.9475 4.5 11.4995 4.052 11.4995 3.5Z" fill="#222222"/>
3
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M19.8065 17.3886C18.012 15.5851 16.576 14.1631 14.882 14.2541C13.932 14.3056 13.071 14.8226 12.25 15.8346C12.0505 15.8816 11.1785 15.7606 9.70854 14.2906C8.23804 12.8201 8.11454 11.9496 8.16454 11.7491C9.17604 10.9286 9.69354 10.0676 9.74454 9.11755C9.83751 7.40352 8.41382 5.98733 6.61102 4.19403L6.60954 4.19255L6.20954 3.79305C5.93154 3.51505 5.51704 3.42655 5.15154 3.56405C3.32754 4.24805 2.08754 5.70855 1.66204 7.67605C0.960038 10.9181 2.54404 14.9526 5.79604 18.2046C8.53754 20.9466 11.8355 22.5026 14.7455 22.5026C15.2875 22.5026 15.816 22.4486 16.3245 22.3386C18.292 21.9121 19.752 20.6731 20.4365 18.8486C20.574 18.4816 20.4845 18.0676 20.207 17.7906L19.8065 17.3886ZM15.9005 20.3836C13.358 20.9351 9.94454 19.5246 7.20954 16.7901C4.47504 14.0556 3.06504 10.6441 3.61604 8.09905C3.78504 7.31805 4.21604 6.31955 5.29054 5.70055C6.59004 6.99305 7.79154 8.20805 7.74804 9.00955C7.72904 9.36455 7.43604 9.77105 6.87804 10.2181C6.45104 10.5596 6.19704 11.0826 6.16304 11.6896C6.11804 12.5036 6.45104 13.8611 8.29504 15.7046C10.139 17.5486 11.5 17.8816 12.3105 17.8366C12.918 17.8031 13.4405 17.5491 13.7815 17.1221C14.2285 16.5636 14.635 16.2706 14.99 16.2511C15.81 16.2126 17.007 17.4101 18.2985 18.7086C17.68 19.7831 16.6815 20.2141 15.9005 20.3836Z" fill="#222222"/>
4
+ <path d="M15.4995 11.5C15.4995 12.052 15.9475 12.5 16.4995 12.5C17.0515 12.5 17.4995 12.052 17.4995 11.5C17.4995 8.93 15.07 6.5 12.4995 6.5C11.9475 6.5 11.4995 6.948 11.4995 7.5C11.4995 8.052 11.9475 8.5 12.4995 8.5C13.9575 8.5 15.4995 10.042 15.4995 11.5Z" fill="#222222"/>
5
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M23.4045 5.91958C23.4395 5.84458 23.464 5.76358 23.4795 5.67908C23.483 5.65908 23.488 5.63958 23.49 5.61958C23.492 5.60508 23.4965 5.59158 23.4975 5.57708C23.5035 5.49758 23.4975 5.42008 23.486 5.34408C23.4835 5.32858 23.479 5.31458 23.4755 5.29908C23.4565 5.20708 23.427 5.11908 23.384 5.03758C23.3815 5.03258 23.3815 5.02708 23.3785 5.02208C23.3775 5.02058 23.376 5.01908 23.375 5.01758C23.328 4.93308 23.2675 4.85808 23.1985 4.79058C23.1855 4.77758 23.173 4.76508 23.1595 4.75308C23.09 4.69158 23.0135 4.63958 22.9285 4.59908C22.9165 4.59358 22.904 4.58958 22.892 4.58458C22.8125 4.55058 22.728 4.52658 22.639 4.51408C22.6265 4.51208 22.615 4.50858 22.6025 4.50758C22.5935 4.50658 22.5855 4.50358 22.5765 4.50308L3.0765 3.00308C2.677 2.97108 2.286 3.19058 2.1045 3.55608C1.9235 3.92108 1.9825 4.36008 2.253 4.66458L5.353 8.15208L1.291 9.02258C0.881497 9.11058 0.569497 9.44458 0.509997 9.85958C0.450997 10.2746 0.656997 10.6821 1.026 10.8806L7.102 14.1526L8.016 19.1791C8.0825 19.5451 8.3465 19.8436 8.7015 19.9546C8.8005 19.9856 8.901 20.0006 9.0005 20.0006C9.2615 20.0006 9.517 19.8981 9.7075 19.7076L23.2075 6.20758C23.218 6.19708 23.223 6.18258 23.2335 6.17158C23.2945 6.10558 23.3495 6.03358 23.3915 5.95208C23.3965 5.94158 23.3995 5.93058 23.4045 5.91958ZM5.3935 5.18758L15.5445 5.96858L7.601 7.67058L5.3935 5.18758ZM9.643 16.9441L8.9845 13.3216C8.9305 13.0226 8.7425 12.7641 8.4745 12.6201L4.368 10.4086L19.399 7.18758L9.643 16.9441ZM3.0015 18.0006C2.6345 18.0006 2.2815 17.7981 2.106 17.4476C1.859 16.9536 2.059 16.3531 2.5535 16.1056L4.5535 15.1056C5.0485 14.8576 5.6485 15.0591 5.8955 15.5531C6.1425 16.0471 5.9425 16.6476 5.448 16.8951L3.448 17.8951C3.304 17.9671 3.1515 18.0006 3.0015 18.0006ZM6.7075 18.2936C7.098 18.6841 7.098 19.3171 6.7075 19.7076L4.7075 21.7076C4.512 21.9031 4.2565 22.0006 4.0005 22.0006C3.7445 22.0006 3.489 21.9031 3.2935 21.7076C2.903 21.3171 2.903 20.6841 3.2935 20.2936L5.2935 18.2936C5.684 17.9031 6.317 17.9031 6.7075 18.2936Z" fill="#FFFFFF"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M23.4045 5.91958C23.4395 5.84458 23.464 5.76358 23.4795 5.67908C23.483 5.65908 23.488 5.63958 23.49 5.61958C23.492 5.60508 23.4965 5.59158 23.4975 5.57708C23.5035 5.49758 23.4975 5.42008 23.486 5.34408C23.4835 5.32858 23.479 5.31458 23.4755 5.29908C23.4565 5.20708 23.427 5.11908 23.384 5.03758C23.3815 5.03258 23.3815 5.02708 23.3785 5.02208C23.3775 5.02058 23.376 5.01908 23.375 5.01758C23.328 4.93308 23.2675 4.85808 23.1985 4.79058C23.1855 4.77758 23.173 4.76508 23.1595 4.75308C23.09 4.69158 23.0135 4.63958 22.9285 4.59908C22.9165 4.59358 22.904 4.58958 22.892 4.58458C22.8125 4.55058 22.728 4.52658 22.639 4.51408C22.6265 4.51208 22.615 4.50858 22.6025 4.50758C22.5935 4.50658 22.5855 4.50358 22.5765 4.50308L3.0765 3.00308C2.677 2.97108 2.286 3.19058 2.1045 3.55608C1.9235 3.92108 1.9825 4.36008 2.253 4.66458L5.353 8.15208L1.291 9.02258C0.881497 9.11058 0.569497 9.44458 0.509997 9.85958C0.450997 10.2746 0.656997 10.6821 1.026 10.8806L7.102 14.1526L8.016 19.1791C8.0825 19.5451 8.3465 19.8436 8.7015 19.9546C8.8005 19.9856 8.901 20.0006 9.0005 20.0006C9.2615 20.0006 9.517 19.8981 9.7075 19.7076L23.2075 6.20758C23.218 6.19708 23.223 6.18258 23.2335 6.17158C23.2945 6.10558 23.3495 6.03358 23.3915 5.95208C23.3965 5.94158 23.3995 5.93058 23.4045 5.91958ZM5.3935 5.18758L15.5445 5.96858L7.601 7.67058L5.3935 5.18758ZM9.643 16.9441L8.9845 13.3216C8.9305 13.0226 8.7425 12.7641 8.4745 12.6201L4.368 10.4086L19.399 7.18758L9.643 16.9441ZM3.0015 18.0006C2.6345 18.0006 2.2815 17.7981 2.106 17.4476C1.859 16.9536 2.059 16.3531 2.5535 16.1056L4.5535 15.1056C5.0485 14.8576 5.6485 15.0591 5.8955 15.5531C6.1425 16.0471 5.9425 16.6476 5.448 16.8951L3.448 17.8951C3.304 17.9671 3.1515 18.0006 3.0015 18.0006ZM6.7075 18.2936C7.098 18.6841 7.098 19.3171 6.7075 19.7076L4.7075 21.7076C4.512 21.9031 4.2565 22.0006 4.0005 22.0006C3.7445 22.0006 3.489 21.9031 3.2935 21.7076C2.903 21.3171 2.903 20.6841 3.2935 20.2936L5.2935 18.2936C5.684 17.9031 6.317 17.9031 6.7075 18.2936Z" fill="#222222"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M8.5 10.5C8.5 11.327 7.827 12 7 12C6.173 12 5.5 11.327 5.5 10.5C5.5 9.673 6.173 9 7 9C7.827 9 8.5 9.673 8.5 10.5ZM12 9C11.173 9 10.5 9.673 10.5 10.5C10.5 11.327 11.173 12 12 12C12.827 12 13.5 11.327 13.5 10.5C13.5 9.673 12.827 9 12 9ZM17 9C16.173 9 15.5 9.673 15.5 10.5C15.5 11.327 16.173 12 17 12C17.827 12 18.5 11.327 18.5 10.5C18.5 9.673 17.827 9 17 9ZM23 5V16C23 16.1075 22.983 16.2145 22.9485 16.316L20.9485 22.316C20.8205 22.7 20.474 22.9685 20.0705 22.9975C20.047 22.9995 20.0235 23 19.9995 23C19.623 23 19.276 22.7875 19.1055 22.4475L17.382 19H4C2.318 19 1 17.682 1 16V5C1 3.318 2.318 2 4 2H20C21.682 2 23 3.318 23 5ZM21 5C21 4.4205 20.5795 4 20 4H4C3.4205 4 3 4.4205 3 5V16C3 16.5795 3.4205 17 4 17H18C18.379 17 18.725 17.214 18.8945 17.5525L19.815 19.3935L21 15.8375V5Z" fill="#FFFFFF"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M8.5 10.5C8.5 11.327 7.827 12 7 12C6.173 12 5.5 11.327 5.5 10.5C5.5 9.673 6.173 9 7 9C7.827 9 8.5 9.673 8.5 10.5ZM12 9C11.173 9 10.5 9.673 10.5 10.5C10.5 11.327 11.173 12 12 12C12.827 12 13.5 11.327 13.5 10.5C13.5 9.673 12.827 9 12 9ZM17 9C16.173 9 15.5 9.673 15.5 10.5C15.5 11.327 16.173 12 17 12C17.827 12 18.5 11.327 18.5 10.5C18.5 9.673 17.827 9 17 9ZM23 5V16C23 16.1075 22.983 16.2145 22.9485 16.316L20.9485 22.316C20.8205 22.7 20.474 22.9685 20.0705 22.9975C20.047 22.9995 20.0235 23 19.9995 23C19.623 23 19.276 22.7875 19.1055 22.4475L17.382 19H4C2.318 19 1 17.682 1 16V5C1 3.318 2.318 2 4 2H20C21.682 2 23 3.318 23 5ZM21 5C21 4.4205 20.5795 4 20 4H4C3.4205 4 3 4.4205 3 5V16C3 16.5795 3.4205 17 4 17H18C18.379 17 18.725 17.214 18.8945 17.5525L19.815 19.3935L21 15.8375V5Z" fill="#222222"/>
3
+ </svg>
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": "8.5.1",
4
+ "version": "8.6.1",
5
5
  "main": "dist/index.js",
6
6
  "license": "ISC",
7
7
  "jest": {
@@ -3,14 +3,31 @@ import styled, { css } from 'styled-components';
3
3
  import spacing from '../../../theme/shared/spacing';
4
4
  import checkBoxIcon from './assets/CR_Tick_black.svg';
5
5
  import TextInput from './_TextInput';
6
+ import EmailIcon from './assets/Email.svg';
7
+ import PhoneIcon from './assets/Phone.svg';
8
+ import PostIcon from './assets/Post.svg';
9
+ import SMSIcon from './assets/Text.svg';
10
+ import EmailIconWhite from './assets/Email--white.svg';
11
+ import PhoneIconWhite from './assets/Phone--white.svg';
12
+ import PostIconWhite from './assets/Post--white.svg';
13
+ import SMSIconWhite from './assets/Text--white.svg';
6
14
 
7
15
  const OuterWrapper = styled.div`
8
16
  display: flex;
9
17
  flex-direction: column;
10
18
 
11
- @media ${({ theme }) => theme.allBreakpoints('M')} {
12
- flex-direction: row;
13
- flex-wrap: wrap;
19
+ // Preload 'selected' icons
20
+ &:after {
21
+ position:absolute;
22
+ width: 0;
23
+ height: 0;
24
+ overflow: hidden;
25
+ z-index: -1;
26
+ content:
27
+ url(${EmailIconWhite})
28
+ url(${PhoneIconWhite})
29
+ url(${PostIconWhite})
30
+ url(${SMSIconWhite});
14
31
  }
15
32
  `;
16
33
 
@@ -28,29 +45,91 @@ const BottomCopyWrapper = styled.div`
28
45
  margin: ${spacing('md')} 0;
29
46
  `;
30
47
 
31
- const Head = styled.div`
48
+ const CheckboxWrapper = styled.div`
32
49
  display: flex;
33
50
  justify-content: space-between;
34
51
  flex-direction: column;
35
52
  `;
36
53
 
54
+ const AssociatedFieldsName = styled.span`
55
+ padding-left: 40px;
56
+ line-height: 30px;
57
+ background-repeat: no-repeat;
58
+ background-position: left center;
59
+
60
+ &.icon-mp_permissionEmail {
61
+ background-image: url(${EmailIcon})
62
+ }
63
+
64
+ &.icon-mp_permissionPhone {
65
+ background-image: url(${PhoneIcon})
66
+ }
67
+
68
+ &.icon-mp_permissionPost {
69
+ background-image: url(${PostIcon})
70
+ }
71
+
72
+ &.icon-mp_permissionSMS {
73
+ background-image: url(${SMSIcon})
74
+ }
75
+ `;
76
+
37
77
  const FormField = styled.div`${({ theme }) => css`
38
78
  position: relative;
39
79
  margin-bottom: ${spacing('md')};
40
80
  width: 100%;
41
81
  display: flex;
42
82
  flex-direction: column;
83
+ padding: ${spacing('m')};
84
+ border: 1px solid ${theme.color('grey')};;
85
+ border-radius: 10px;
86
+ background-color: ${theme.color('grey_light')};
87
+ transition: background-color 0.3s, color 0.3s;
43
88
 
44
- @media ${theme.allBreakpoints('M')} {
45
- width: 50%;
46
- padding: 10px;
89
+ &:hover {
90
+ background-color: ${theme.color('grey_medium')};
91
+ }
92
+
93
+ &.selected {
94
+ background-color: ${theme.color('blue_donate')};
95
+
96
+ span.icon-mp_permissionEmail {
97
+ background-image: url(${EmailIconWhite});
98
+ }
99
+
100
+ span.icon-mp_permissionPhone {
101
+ background-image: url(${PhoneIconWhite});
102
+ }
103
+
104
+ span.icon-mp_permissionPost {
105
+ background-image: url(${PostIconWhite});
106
+ }
107
+
108
+ span.icon-mp_permissionSMS {
109
+ background-image: url(${SMSIconWhite});
110
+ }
111
+
112
+ > div {
113
+ label, > span {
114
+ color: ${theme.color('white')};
115
+ }
116
+ }
117
+
118
+ &:hover {
119
+ // No fancy functions yet to darken preexisting colours..
120
+ background-color: #161a85;
121
+ }
47
122
  }
48
123
 
124
+ // All labels; input AND checkbox
49
125
  label {
50
126
  position: relative;
51
- margin-bottom: ${spacing('md')};
127
+ margin-bottom: 0;
52
128
  width: 100%;
53
- color: ${theme.color('grey_dark')};
129
+ color: ${theme.color('black')};
130
+ font-weight: 600;
131
+ display: flex;
132
+ justify-content: space-between;
54
133
  }
55
134
 
56
135
  h3 {
@@ -99,21 +178,15 @@ const CheckInput = styled.input`
99
178
  margin: 0;
100
179
  border: 1px solid ${({ theme }) => theme.color('grey_for_forms')};
101
180
  + span {
102
- margin-right: 10px;
103
181
  width: 30px;
104
182
  height: 30px;
105
- background-color: ${({ theme }) => theme.color('grey_light')};
183
+ background-color: ${({ theme }) => theme.color('white')};
106
184
  border: 1px solid ${({ theme }) => theme.color('black')};
107
185
  float: left;
108
186
  border-radius: 8px;
109
-
110
- @media ${({ theme }) => theme.allBreakpoints('M')} {
111
- margin-right: 15px;
112
- }
113
187
  }
114
188
  :checked + span {
115
- background: url(${checkBoxIcon}) no-repeat center;
116
- background-color: ${({ theme }) => theme.color('grey_light')};
189
+ background: url(${checkBoxIcon}) no-repeat center ${({ theme }) => theme.color('white')};;
117
190
  background-size: contain;
118
191
  }
119
192
  `;
@@ -137,11 +210,13 @@ const ExtraInfo = styled.span`
137
210
  font-weight: normal;
138
211
  line-height: normal;
139
212
  font-family: 'Montserrat',Helvetica,Arial,sans-serif;
140
- margin-bottom: 0.5rem;
141
- color: ${({ theme }) => theme.color('grey_dark')};
213
+ margin-bottom: 0rem;
214
+ margin-top: 1rem;
215
+ color: ${({ theme }) => theme.color('black')};
142
216
 
143
217
  + label {
144
- margin-top: 20px;
218
+ margin-top: ${spacing('md')};
219
+ margin-bottom: 0;
145
220
 
146
221
  // Visually hide the actual field label for the
147
222
  // non-multifield options, as we have the
@@ -164,8 +239,19 @@ const ExtraInfo = styled.span`
164
239
  `;
165
240
 
166
241
  const MPTextInput = styled(TextInput)`
242
+ // Correct the ErrorMsg offset for this context
243
+ > div + span span {
244
+ margin-top: -20px;
245
+ }
246
+
247
+ > span {
248
+ margin-bottom: .5rem;
249
+ }
250
+
167
251
  input {
168
- border: 1px solid ${({ theme }) => theme.color('black')};;
252
+ border: 1px solid ${({ theme }) => theme.color('black')};
253
+ background-color: ${({ theme }) => theme.color('white')};
254
+ margin-bottom: 10px;
169
255
  @media ${({ theme }) => theme.allBreakpoints('M')} {
170
256
  max-width: none;
171
257
  }
@@ -175,7 +261,7 @@ const MPTextInput = styled(TextInput)`
175
261
  export {
176
262
  TopCopyWrapper,
177
263
  BottomCopyWrapper,
178
- Head,
264
+ CheckboxWrapper,
179
265
  FormField,
180
266
  CheckLabel,
181
267
  CheckInput,
@@ -183,5 +269,6 @@ export {
183
269
  ShowHideInputWrapper,
184
270
  ExtraInfo,
185
271
  OuterWrapper,
186
- MPTextInput
272
+ MPTextInput,
273
+ AssociatedFieldsName
187
274
  };
@@ -2,11 +2,11 @@ import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { useWatch } from 'react-hook-form';
4
4
  import _ from 'lodash';
5
- import CheckAnswer from './_CheckAnswer';
5
+ import OptInCheckbox from './_OptInCheckbox';
6
6
 
7
7
  import { defaultCopyTop, defaultCopyBottom } from './_DefaultCopy';
8
8
  import {
9
- TopCopyWrapper, BottomCopyWrapper, Head, FormField,
9
+ TopCopyWrapper, BottomCopyWrapper, CheckboxWrapper, FormField,
10
10
  ShowHideInputWrapper, ExtraInfo, OuterWrapper, MPTextInput
11
11
  } from './MarketingPreferencesDS.style';
12
12
 
@@ -67,16 +67,16 @@ const MarketingPreferencesDS = ({
67
67
 
68
68
  {/* Render Email checkboxes and input if not removed in config */}
69
69
  {!mp_permissionEmail.disableOption && (
70
- <FormField className="field-email">
71
- <Head>
72
- <CheckAnswer
70
+ <FormField className={`field-email ${emailChoice && 'selected'}`}>
71
+ <CheckboxWrapper>
72
+ <OptInCheckbox
73
73
  mpValidationOptions={mpValidationOptions}
74
74
  name="mp_permissionEmail"
75
75
  id="mp_permissionEmail"
76
76
  userSelection={emailChoice}
77
77
  formContext={formContext}
78
78
  />
79
- </Head>
79
+ </CheckboxWrapper>
80
80
 
81
81
  <MaybeDisabled disabled={disableEmailInput}>
82
82
  <ShowHideInputWrapper show={showEmailField}>
@@ -102,16 +102,16 @@ const MarketingPreferencesDS = ({
102
102
 
103
103
  {/* Render Post checkboxes and inputs if not removed in config */}
104
104
  {!mp_permissionPost.disableOption && (
105
- <FormField className="field-post">
106
- <Head>
107
- <CheckAnswer
105
+ <FormField className={`field-post ${postChoice && 'selected'}`}>
106
+ <CheckboxWrapper>
107
+ <OptInCheckbox
108
108
  name="mp_permissionPost"
109
109
  mpValidationOptions={mpValidationOptions}
110
110
  id="mp_permissionPost"
111
111
  userSelection={postChoice}
112
112
  formContext={formContext}
113
113
  />
114
- </Head>
114
+ </CheckboxWrapper>
115
115
  <MaybeDisabled disabled={disablePostInput}>
116
116
  <ShowHideInputWrapper show={showPostFields}>
117
117
  <ExtraInfo>
@@ -174,16 +174,16 @@ const MarketingPreferencesDS = ({
174
174
 
175
175
  {/* Render SMS checkboxes and inputs if not removed in config */}
176
176
  {!mp_permissionSMS.disableOption && (
177
- <FormField className="field-sms">
178
- <Head>
179
- <CheckAnswer
177
+ <FormField className={`field-sms ${smsChoice && 'selected'}`}>
178
+ <CheckboxWrapper>
179
+ <OptInCheckbox
180
180
  name="mp_permissionSMS"
181
181
  id="mp_permissionSMS"
182
182
  mpValidationOptions={mpValidationOptions}
183
183
  userSelection={smsChoice}
184
184
  formContext={formContext}
185
185
  />
186
- </Head>
186
+ </CheckboxWrapper>
187
187
  <MaybeDisabled disabled={disableSMSInput}>
188
188
  <ShowHideInputWrapper show={showSMSField}>
189
189
  <ExtraInfo>
@@ -206,16 +206,16 @@ const MarketingPreferencesDS = ({
206
206
 
207
207
  {/* Render Phone checkboxes and input if not removed in config */}
208
208
  {!mp_permissionPhone.disableOption && (
209
- <FormField className="field-phone">
210
- <Head>
211
- <CheckAnswer
209
+ <FormField className={`field-phone ${phoneChoice && 'selected'}`}>
210
+ <CheckboxWrapper>
211
+ <OptInCheckbox
212
212
  name="mp_permissionPhone"
213
213
  mpValidationOptions={mpValidationOptions}
214
214
  id="mp_permissionPhone"
215
215
  userSelection={phoneChoice}
216
216
  formContext={formContext}
217
217
  />
218
- </Head>
218
+ </CheckboxWrapper>
219
219
  <MaybeDisabled disabled={disablePhoneInput}>
220
220
  <ShowHideInputWrapper show={showPhoneField}>
221
221
  <ExtraInfo>
@@ -5,10 +5,11 @@ import AssociatedFields from './_AssociatedFields';
5
5
  import {
6
6
  CheckContainer,
7
7
  CheckLabel,
8
- CheckInput
8
+ CheckInput,
9
+ AssociatedFieldsName
9
10
  } from './MarketingPreferencesDS.style';
10
11
 
11
- const CheckAnswer = ({
12
+ const OptInCheckbox = ({
12
13
  name, mpValidationOptions, userSelection = null, formContext = null
13
14
  }) => {
14
15
  const { setValue, clearErrors, register } = formContext;
@@ -48,6 +49,9 @@ const CheckAnswer = ({
48
49
  return (
49
50
  <CheckContainer>
50
51
  <CheckLabel htmlFor={`${name}-yes`} userSelection={userSelection}>
52
+ <AssociatedFieldsName className={`icon-${name}`}>
53
+ { AssociatedFields[name].label }
54
+ </AssociatedFieldsName>
51
55
  <CheckInput
52
56
  type="checkbox"
53
57
  name={name}
@@ -56,14 +60,14 @@ const CheckAnswer = ({
56
60
  {...register(name)}
57
61
  onChange={onChange}
58
62
  />
63
+ {/* What our custom checkbox is built on: */}
59
64
  <span />
60
- { AssociatedFields[name].label }
61
65
  </CheckLabel>
62
66
  </CheckContainer>
63
67
  );
64
68
  };
65
69
 
66
- CheckAnswer.propTypes = {
70
+ OptInCheckbox.propTypes = {
67
71
  name: PropTypes.string.isRequired,
68
72
  /* These options are created in _MarketingPrefsConfig.js, passed to react-hook-form
69
73
  in the parent to set-up the validation, but also required here for additional functionality */
@@ -75,4 +79,4 @@ CheckAnswer.propTypes = {
75
79
  formContext: PropTypes.shape()
76
80
  };
77
81
 
78
- export default CheckAnswer;
82
+ export default OptInCheckbox;
@@ -0,0 +1,3 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M22 3.5H2C1.4475 3.5 1 3.9475 1 4.5V19.5C1 20.052 1.448 20.5 2 20.5H22C22.552 20.5 23 20.052 23 19.5V4.5C23 3.9475 22.552 3.5 22 3.5ZM19.9495 5.5L12 12.6545L4.0505 5.5H19.9495ZM3 18.5V7.2455L11.331 14.7435C11.521 14.9145 11.7605 15 12 15C12.2395 15 12.479 14.9145 12.669 14.7435L21 7.2455V18.5H3Z" fill="#FFFFFF"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M22 3.5H2C1.4475 3.5 1 3.9475 1 4.5V19.5C1 20.052 1.448 20.5 2 20.5H22C22.552 20.5 23 20.052 23 19.5V4.5C23 3.9475 22.552 3.5 22 3.5ZM19.9495 5.5L12 12.6545L4.0505 5.5H19.9495ZM3 18.5V7.2455L11.331 14.7435C11.521 14.9145 11.7605 15 12 15C12.2395 15 12.479 14.9145 12.669 14.7435L21 7.2455V18.5H3Z" fill="#222222"/>
3
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M11.4995 3.5C11.4995 2.948 11.9475 2.5 12.4995 2.5C17.0415 2.5 21.4995 6.958 21.4995 11.5C21.4995 12.052 21.0515 12.5 20.4995 12.5C19.9475 12.5 19.4995 12.052 19.4995 11.5C19.4995 8.0325 15.967 4.5 12.4995 4.5C11.9475 4.5 11.4995 4.052 11.4995 3.5Z" fill="#FFFFFF"/>
3
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M19.8065 17.3886C18.012 15.5851 16.576 14.1631 14.882 14.2541C13.932 14.3056 13.071 14.8226 12.25 15.8346C12.0505 15.8816 11.1785 15.7606 9.70854 14.2906C8.23804 12.8201 8.11454 11.9496 8.16454 11.7491C9.17604 10.9286 9.69354 10.0676 9.74454 9.11755C9.83751 7.40352 8.41382 5.98733 6.61102 4.19403L6.60954 4.19255L6.20954 3.79305C5.93154 3.51505 5.51704 3.42655 5.15154 3.56405C3.32754 4.24805 2.08754 5.70855 1.66204 7.67605C0.960038 10.9181 2.54404 14.9526 5.79604 18.2046C8.53754 20.9466 11.8355 22.5026 14.7455 22.5026C15.2875 22.5026 15.816 22.4486 16.3245 22.3386C18.292 21.9121 19.752 20.6731 20.4365 18.8486C20.574 18.4816 20.4845 18.0676 20.207 17.7906L19.8065 17.3886ZM15.9005 20.3836C13.358 20.9351 9.94454 19.5246 7.20954 16.7901C4.47504 14.0556 3.06504 10.6441 3.61604 8.09905C3.78504 7.31805 4.21604 6.31955 5.29054 5.70055C6.59004 6.99305 7.79154 8.20805 7.74804 9.00955C7.72904 9.36455 7.43604 9.77105 6.87804 10.2181C6.45104 10.5596 6.19704 11.0826 6.16304 11.6896C6.11804 12.5036 6.45104 13.8611 8.29504 15.7046C10.139 17.5486 11.5 17.8816 12.3105 17.8366C12.918 17.8031 13.4405 17.5491 13.7815 17.1221C14.2285 16.5636 14.635 16.2706 14.99 16.2511C15.81 16.2126 17.007 17.4101 18.2985 18.7086C17.68 19.7831 16.6815 20.2141 15.9005 20.3836Z" fill="#FFFFFF"/>
4
+ <path d="M15.4995 11.5C15.4995 12.052 15.9475 12.5 16.4995 12.5C17.0515 12.5 17.4995 12.052 17.4995 11.5C17.4995 8.93 15.07 6.5 12.4995 6.5C11.9475 6.5 11.4995 6.948 11.4995 7.5C11.4995 8.052 11.9475 8.5 12.4995 8.5C13.9575 8.5 15.4995 10.042 15.4995 11.5Z" fill="#FFFFFF"/>
5
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M11.4995 3.5C11.4995 2.948 11.9475 2.5 12.4995 2.5C17.0415 2.5 21.4995 6.958 21.4995 11.5C21.4995 12.052 21.0515 12.5 20.4995 12.5C19.9475 12.5 19.4995 12.052 19.4995 11.5C19.4995 8.0325 15.967 4.5 12.4995 4.5C11.9475 4.5 11.4995 4.052 11.4995 3.5Z" fill="#222222"/>
3
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M19.8065 17.3886C18.012 15.5851 16.576 14.1631 14.882 14.2541C13.932 14.3056 13.071 14.8226 12.25 15.8346C12.0505 15.8816 11.1785 15.7606 9.70854 14.2906C8.23804 12.8201 8.11454 11.9496 8.16454 11.7491C9.17604 10.9286 9.69354 10.0676 9.74454 9.11755C9.83751 7.40352 8.41382 5.98733 6.61102 4.19403L6.60954 4.19255L6.20954 3.79305C5.93154 3.51505 5.51704 3.42655 5.15154 3.56405C3.32754 4.24805 2.08754 5.70855 1.66204 7.67605C0.960038 10.9181 2.54404 14.9526 5.79604 18.2046C8.53754 20.9466 11.8355 22.5026 14.7455 22.5026C15.2875 22.5026 15.816 22.4486 16.3245 22.3386C18.292 21.9121 19.752 20.6731 20.4365 18.8486C20.574 18.4816 20.4845 18.0676 20.207 17.7906L19.8065 17.3886ZM15.9005 20.3836C13.358 20.9351 9.94454 19.5246 7.20954 16.7901C4.47504 14.0556 3.06504 10.6441 3.61604 8.09905C3.78504 7.31805 4.21604 6.31955 5.29054 5.70055C6.59004 6.99305 7.79154 8.20805 7.74804 9.00955C7.72904 9.36455 7.43604 9.77105 6.87804 10.2181C6.45104 10.5596 6.19704 11.0826 6.16304 11.6896C6.11804 12.5036 6.45104 13.8611 8.29504 15.7046C10.139 17.5486 11.5 17.8816 12.3105 17.8366C12.918 17.8031 13.4405 17.5491 13.7815 17.1221C14.2285 16.5636 14.635 16.2706 14.99 16.2511C15.81 16.2126 17.007 17.4101 18.2985 18.7086C17.68 19.7831 16.6815 20.2141 15.9005 20.3836Z" fill="#222222"/>
4
+ <path d="M15.4995 11.5C15.4995 12.052 15.9475 12.5 16.4995 12.5C17.0515 12.5 17.4995 12.052 17.4995 11.5C17.4995 8.93 15.07 6.5 12.4995 6.5C11.9475 6.5 11.4995 6.948 11.4995 7.5C11.4995 8.052 11.9475 8.5 12.4995 8.5C13.9575 8.5 15.4995 10.042 15.4995 11.5Z" fill="#222222"/>
5
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M23.4045 5.91958C23.4395 5.84458 23.464 5.76358 23.4795 5.67908C23.483 5.65908 23.488 5.63958 23.49 5.61958C23.492 5.60508 23.4965 5.59158 23.4975 5.57708C23.5035 5.49758 23.4975 5.42008 23.486 5.34408C23.4835 5.32858 23.479 5.31458 23.4755 5.29908C23.4565 5.20708 23.427 5.11908 23.384 5.03758C23.3815 5.03258 23.3815 5.02708 23.3785 5.02208C23.3775 5.02058 23.376 5.01908 23.375 5.01758C23.328 4.93308 23.2675 4.85808 23.1985 4.79058C23.1855 4.77758 23.173 4.76508 23.1595 4.75308C23.09 4.69158 23.0135 4.63958 22.9285 4.59908C22.9165 4.59358 22.904 4.58958 22.892 4.58458C22.8125 4.55058 22.728 4.52658 22.639 4.51408C22.6265 4.51208 22.615 4.50858 22.6025 4.50758C22.5935 4.50658 22.5855 4.50358 22.5765 4.50308L3.0765 3.00308C2.677 2.97108 2.286 3.19058 2.1045 3.55608C1.9235 3.92108 1.9825 4.36008 2.253 4.66458L5.353 8.15208L1.291 9.02258C0.881497 9.11058 0.569497 9.44458 0.509997 9.85958C0.450997 10.2746 0.656997 10.6821 1.026 10.8806L7.102 14.1526L8.016 19.1791C8.0825 19.5451 8.3465 19.8436 8.7015 19.9546C8.8005 19.9856 8.901 20.0006 9.0005 20.0006C9.2615 20.0006 9.517 19.8981 9.7075 19.7076L23.2075 6.20758C23.218 6.19708 23.223 6.18258 23.2335 6.17158C23.2945 6.10558 23.3495 6.03358 23.3915 5.95208C23.3965 5.94158 23.3995 5.93058 23.4045 5.91958ZM5.3935 5.18758L15.5445 5.96858L7.601 7.67058L5.3935 5.18758ZM9.643 16.9441L8.9845 13.3216C8.9305 13.0226 8.7425 12.7641 8.4745 12.6201L4.368 10.4086L19.399 7.18758L9.643 16.9441ZM3.0015 18.0006C2.6345 18.0006 2.2815 17.7981 2.106 17.4476C1.859 16.9536 2.059 16.3531 2.5535 16.1056L4.5535 15.1056C5.0485 14.8576 5.6485 15.0591 5.8955 15.5531C6.1425 16.0471 5.9425 16.6476 5.448 16.8951L3.448 17.8951C3.304 17.9671 3.1515 18.0006 3.0015 18.0006ZM6.7075 18.2936C7.098 18.6841 7.098 19.3171 6.7075 19.7076L4.7075 21.7076C4.512 21.9031 4.2565 22.0006 4.0005 22.0006C3.7445 22.0006 3.489 21.9031 3.2935 21.7076C2.903 21.3171 2.903 20.6841 3.2935 20.2936L5.2935 18.2936C5.684 17.9031 6.317 17.9031 6.7075 18.2936Z" fill="#FFFFFF"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M23.4045 5.91958C23.4395 5.84458 23.464 5.76358 23.4795 5.67908C23.483 5.65908 23.488 5.63958 23.49 5.61958C23.492 5.60508 23.4965 5.59158 23.4975 5.57708C23.5035 5.49758 23.4975 5.42008 23.486 5.34408C23.4835 5.32858 23.479 5.31458 23.4755 5.29908C23.4565 5.20708 23.427 5.11908 23.384 5.03758C23.3815 5.03258 23.3815 5.02708 23.3785 5.02208C23.3775 5.02058 23.376 5.01908 23.375 5.01758C23.328 4.93308 23.2675 4.85808 23.1985 4.79058C23.1855 4.77758 23.173 4.76508 23.1595 4.75308C23.09 4.69158 23.0135 4.63958 22.9285 4.59908C22.9165 4.59358 22.904 4.58958 22.892 4.58458C22.8125 4.55058 22.728 4.52658 22.639 4.51408C22.6265 4.51208 22.615 4.50858 22.6025 4.50758C22.5935 4.50658 22.5855 4.50358 22.5765 4.50308L3.0765 3.00308C2.677 2.97108 2.286 3.19058 2.1045 3.55608C1.9235 3.92108 1.9825 4.36008 2.253 4.66458L5.353 8.15208L1.291 9.02258C0.881497 9.11058 0.569497 9.44458 0.509997 9.85958C0.450997 10.2746 0.656997 10.6821 1.026 10.8806L7.102 14.1526L8.016 19.1791C8.0825 19.5451 8.3465 19.8436 8.7015 19.9546C8.8005 19.9856 8.901 20.0006 9.0005 20.0006C9.2615 20.0006 9.517 19.8981 9.7075 19.7076L23.2075 6.20758C23.218 6.19708 23.223 6.18258 23.2335 6.17158C23.2945 6.10558 23.3495 6.03358 23.3915 5.95208C23.3965 5.94158 23.3995 5.93058 23.4045 5.91958ZM5.3935 5.18758L15.5445 5.96858L7.601 7.67058L5.3935 5.18758ZM9.643 16.9441L8.9845 13.3216C8.9305 13.0226 8.7425 12.7641 8.4745 12.6201L4.368 10.4086L19.399 7.18758L9.643 16.9441ZM3.0015 18.0006C2.6345 18.0006 2.2815 17.7981 2.106 17.4476C1.859 16.9536 2.059 16.3531 2.5535 16.1056L4.5535 15.1056C5.0485 14.8576 5.6485 15.0591 5.8955 15.5531C6.1425 16.0471 5.9425 16.6476 5.448 16.8951L3.448 17.8951C3.304 17.9671 3.1515 18.0006 3.0015 18.0006ZM6.7075 18.2936C7.098 18.6841 7.098 19.3171 6.7075 19.7076L4.7075 21.7076C4.512 21.9031 4.2565 22.0006 4.0005 22.0006C3.7445 22.0006 3.489 21.9031 3.2935 21.7076C2.903 21.3171 2.903 20.6841 3.2935 20.2936L5.2935 18.2936C5.684 17.9031 6.317 17.9031 6.7075 18.2936Z" fill="#222222"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M8.5 10.5C8.5 11.327 7.827 12 7 12C6.173 12 5.5 11.327 5.5 10.5C5.5 9.673 6.173 9 7 9C7.827 9 8.5 9.673 8.5 10.5ZM12 9C11.173 9 10.5 9.673 10.5 10.5C10.5 11.327 11.173 12 12 12C12.827 12 13.5 11.327 13.5 10.5C13.5 9.673 12.827 9 12 9ZM17 9C16.173 9 15.5 9.673 15.5 10.5C15.5 11.327 16.173 12 17 12C17.827 12 18.5 11.327 18.5 10.5C18.5 9.673 17.827 9 17 9ZM23 5V16C23 16.1075 22.983 16.2145 22.9485 16.316L20.9485 22.316C20.8205 22.7 20.474 22.9685 20.0705 22.9975C20.047 22.9995 20.0235 23 19.9995 23C19.623 23 19.276 22.7875 19.1055 22.4475L17.382 19H4C2.318 19 1 17.682 1 16V5C1 3.318 2.318 2 4 2H20C21.682 2 23 3.318 23 5ZM21 5C21 4.4205 20.5795 4 20 4H4C3.4205 4 3 4.4205 3 5V16C3 16.5795 3.4205 17 4 17H18C18.379 17 18.725 17.214 18.8945 17.5525L19.815 19.3935L21 15.8375V5Z" fill="#FFFFFF"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M8.5 10.5C8.5 11.327 7.827 12 7 12C6.173 12 5.5 11.327 5.5 10.5C5.5 9.673 6.173 9 7 9C7.827 9 8.5 9.673 8.5 10.5ZM12 9C11.173 9 10.5 9.673 10.5 10.5C10.5 11.327 11.173 12 12 12C12.827 12 13.5 11.327 13.5 10.5C13.5 9.673 12.827 9 12 9ZM17 9C16.173 9 15.5 9.673 15.5 10.5C15.5 11.327 16.173 12 17 12C17.827 12 18.5 11.327 18.5 10.5C18.5 9.673 17.827 9 17 9ZM23 5V16C23 16.1075 22.983 16.2145 22.9485 16.316L20.9485 22.316C20.8205 22.7 20.474 22.9685 20.0705 22.9975C20.047 22.9995 20.0235 23 19.9995 23C19.623 23 19.276 22.7875 19.1055 22.4475L17.382 19H4C2.318 19 1 17.682 1 16V5C1 3.318 2.318 2 4 2H20C21.682 2 23 3.318 23 5ZM21 5C21 4.4205 20.5795 4 20 4H4C3.4205 4 3 4.4205 3 5V16C3 16.5795 3.4205 17 4 17H18C18.379 17 18.725 17.214 18.8945 17.5525L19.815 19.3935L21 15.8375V5Z" fill="#222222"/>
3
+ </svg>
@@ -1 +0,0 @@
1
- <svg version="1.1" id="Content" xmlns="http://www.w3.org/2000/svg" x="0" y="0" viewBox="0 0 48 48" xml:space="preserve"><style></style><path d="M44 7H4a2 2 0 0 0-2 2v30a2 2 0 0 0 2 2h40a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2zm-4.101 4L24 25.309 8.101 11h31.798zM6 37V14.491l16.662 14.996c.38.342.859.513 1.338.513s.958-.171 1.338-.513L42 14.491V37H6z"/></svg>
@@ -1 +0,0 @@
1
- <svg version="1.1" id="Content" xmlns="http://www.w3.org/2000/svg" x="0" y="0" viewBox="0 0 48 48" xml:space="preserve"><style></style><path d="M39.614 34.777c-3.589-3.607-6.461-6.451-9.849-6.269-1.9.103-3.622 1.137-5.264 3.161-.399.094-2.143-.148-5.083-3.088-2.941-2.941-3.188-4.682-3.088-5.083 2.023-1.641 3.058-3.363 3.16-5.263.186-3.429-2.663-6.262-6.27-9.85l-.8-.799a2 2 0 0 0-2.116-.458c-3.648 1.368-6.128 4.289-6.979 8.224-1.404 6.484 1.764 14.553 8.268 21.057 5.483 5.484 12.079 8.596 17.899 8.596 1.084 0 2.141-.108 3.158-.328 3.935-.853 6.855-3.331 8.224-6.98a2 2 0 0 0-.459-2.116l-.801-.804zm-7.812 5.99C26.717 41.87 19.89 39.049 14.42 33.58c-5.469-5.469-8.289-12.292-7.187-17.382.338-1.562 1.2-3.559 3.349-4.797 2.599 2.585 5.002 5.015 4.915 6.618-.038.71-.624 1.523-1.74 2.417-.854.683-1.362 1.729-1.43 2.943-.09 1.628.576 4.343 4.264 8.03 3.688 3.688 6.41 4.354 8.031 4.264 1.215-.067 2.26-.575 2.942-1.429.894-1.117 1.707-1.703 2.417-1.742 1.64-.077 4.034 2.318 6.617 4.915-1.237 2.149-3.234 3.011-4.796 3.35zM25 17a2 2 0 0 1 0-4c5.141 0 10 4.86 10 10a2 2 0 0 1-4 0c0-2.916-3.084-6-6-6zm18 6a2 2 0 0 1-4 0c0-6.935-7.065-14-14-14a2 2 0 0 1 0-4c9.084 0 18 8.916 18 18z"/></svg>
@@ -1 +0,0 @@
1
- <svg version="1.1" id="Content" xmlns="http://www.w3.org/2000/svg" x="0" y="0" viewBox="0 0 48 48" xml:space="preserve"><style></style><path d="M46.808 11.838c.07-.15.119-.312.15-.481.007-.04.017-.079.021-.119.004-.029.013-.056.015-.085.012-.159 0-.314-.023-.466-.005-.031-.014-.059-.021-.09a1.969 1.969 0 0 0-.183-.523c-.005-.01-.005-.021-.011-.031l-.007-.009a1.993 1.993 0 0 0-.353-.454c-.026-.026-.051-.051-.078-.075a1.98 1.98 0 0 0-.462-.308c-.024-.011-.049-.019-.073-.029a1.986 1.986 0 0 0-.506-.141c-.025-.004-.048-.011-.073-.013-.018-.002-.034-.008-.052-.009l-39-3a2.01 2.01 0 0 0-1.944 1.106 2.001 2.001 0 0 0 .297 2.217l6.2 6.975-8.124 1.741a1.999 1.999 0 0 0-.53 3.716l12.152 6.544 1.828 10.053a2 2 0 0 0 3.383 1.057l27-27c.021-.021.031-.05.052-.072.122-.132.232-.276.316-.439.01-.021.016-.043.026-.065zm-36.022-1.464l20.302 1.562-15.887 3.404-4.415-4.966zm8.499 23.513l-1.317-7.245a1.997 1.997 0 0 0-1.02-1.403l-8.213-4.423 30.062-6.442-19.512 19.513zM6.002 36a2 2 0 0 1-.896-3.79l4-2a2 2 0 1 1 1.789 3.579l-4 2a1.99 1.99 0 0 1-.893.211zm7.412.586a2 2 0 0 1 0 2.828l-4 4C9.023 43.805 8.512 44 8 44s-1.023-.195-1.414-.586a2 2 0 0 1 0-2.828l4-4a2 2 0 0 1 2.828 0z"/></svg>
@@ -1 +0,0 @@
1
- <svg version="1.1" id="Content" xmlns="http://www.w3.org/2000/svg" x="0" y="0" viewBox="0 0 48 48" xml:space="preserve"><style></style><path d="M17 21c0 1.654-1.346 3-3 3s-3-1.346-3-3 1.346-3 3-3 3 1.346 3 3zm7-3c-1.654 0-3 1.346-3 3s1.346 3 3 3 3-1.346 3-3-1.346-3-3-3zm10 0c-1.654 0-3 1.346-3 3s1.346 3 3 3 3-1.346 3-3-1.346-3-3-3zm12-8v22c0 .215-.034.429-.103.632l-4 12a2.001 2.001 0 0 1-3.686.263L34.764 38H8c-3.364 0-6-2.636-6-6V10c0-3.364 2.636-6 6-6h32c3.364 0 6 2.636 6 6zm-4 0c0-1.159-.841-2-2-2H8c-1.159 0-2 .841-2 2v22c0 1.159.841 2 2 2h28a2 2 0 0 1 1.789 1.105l1.841 3.682L42 31.675V10z"/></svg>
@@ -1 +0,0 @@
1
- <svg version="1.1" id="Content" xmlns="http://www.w3.org/2000/svg" x="0" y="0" viewBox="0 0 48 48" xml:space="preserve"><style></style><path d="M44 7H4a2 2 0 0 0-2 2v30a2 2 0 0 0 2 2h40a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2zm-4.101 4L24 25.309 8.101 11h31.798zM6 37V14.491l16.662 14.996c.38.342.859.513 1.338.513s.958-.171 1.338-.513L42 14.491V37H6z"/></svg>
@@ -1 +0,0 @@
1
- <svg version="1.1" id="Content" xmlns="http://www.w3.org/2000/svg" x="0" y="0" viewBox="0 0 48 48" xml:space="preserve"><style></style><path d="M39.614 34.777c-3.589-3.607-6.461-6.451-9.849-6.269-1.9.103-3.622 1.137-5.264 3.161-.399.094-2.143-.148-5.083-3.088-2.941-2.941-3.188-4.682-3.088-5.083 2.023-1.641 3.058-3.363 3.16-5.263.186-3.429-2.663-6.262-6.27-9.85l-.8-.799a2 2 0 0 0-2.116-.458c-3.648 1.368-6.128 4.289-6.979 8.224-1.404 6.484 1.764 14.553 8.268 21.057 5.483 5.484 12.079 8.596 17.899 8.596 1.084 0 2.141-.108 3.158-.328 3.935-.853 6.855-3.331 8.224-6.98a2 2 0 0 0-.459-2.116l-.801-.804zm-7.812 5.99C26.717 41.87 19.89 39.049 14.42 33.58c-5.469-5.469-8.289-12.292-7.187-17.382.338-1.562 1.2-3.559 3.349-4.797 2.599 2.585 5.002 5.015 4.915 6.618-.038.71-.624 1.523-1.74 2.417-.854.683-1.362 1.729-1.43 2.943-.09 1.628.576 4.343 4.264 8.03 3.688 3.688 6.41 4.354 8.031 4.264 1.215-.067 2.26-.575 2.942-1.429.894-1.117 1.707-1.703 2.417-1.742 1.64-.077 4.034 2.318 6.617 4.915-1.237 2.149-3.234 3.011-4.796 3.35zM25 17a2 2 0 0 1 0-4c5.141 0 10 4.86 10 10a2 2 0 0 1-4 0c0-2.916-3.084-6-6-6zm18 6a2 2 0 0 1-4 0c0-6.935-7.065-14-14-14a2 2 0 0 1 0-4c9.084 0 18 8.916 18 18z"/></svg>
@@ -1 +0,0 @@
1
- <svg version="1.1" id="Content" xmlns="http://www.w3.org/2000/svg" x="0" y="0" viewBox="0 0 48 48" xml:space="preserve"><style></style><path d="M46.808 11.838c.07-.15.119-.312.15-.481.007-.04.017-.079.021-.119.004-.029.013-.056.015-.085.012-.159 0-.314-.023-.466-.005-.031-.014-.059-.021-.09a1.969 1.969 0 0 0-.183-.523c-.005-.01-.005-.021-.011-.031l-.007-.009a1.993 1.993 0 0 0-.353-.454c-.026-.026-.051-.051-.078-.075a1.98 1.98 0 0 0-.462-.308c-.024-.011-.049-.019-.073-.029a1.986 1.986 0 0 0-.506-.141c-.025-.004-.048-.011-.073-.013-.018-.002-.034-.008-.052-.009l-39-3a2.01 2.01 0 0 0-1.944 1.106 2.001 2.001 0 0 0 .297 2.217l6.2 6.975-8.124 1.741a1.999 1.999 0 0 0-.53 3.716l12.152 6.544 1.828 10.053a2 2 0 0 0 3.383 1.057l27-27c.021-.021.031-.05.052-.072.122-.132.232-.276.316-.439.01-.021.016-.043.026-.065zm-36.022-1.464l20.302 1.562-15.887 3.404-4.415-4.966zm8.499 23.513l-1.317-7.245a1.997 1.997 0 0 0-1.02-1.403l-8.213-4.423 30.062-6.442-19.512 19.513zM6.002 36a2 2 0 0 1-.896-3.79l4-2a2 2 0 1 1 1.789 3.579l-4 2a1.99 1.99 0 0 1-.893.211zm7.412.586a2 2 0 0 1 0 2.828l-4 4C9.023 43.805 8.512 44 8 44s-1.023-.195-1.414-.586a2 2 0 0 1 0-2.828l4-4a2 2 0 0 1 2.828 0z"/></svg>
@@ -1 +0,0 @@
1
- <svg version="1.1" id="Content" xmlns="http://www.w3.org/2000/svg" x="0" y="0" viewBox="0 0 48 48" xml:space="preserve"><style></style><path d="M17 21c0 1.654-1.346 3-3 3s-3-1.346-3-3 1.346-3 3-3 3 1.346 3 3zm7-3c-1.654 0-3 1.346-3 3s1.346 3 3 3 3-1.346 3-3-1.346-3-3-3zm10 0c-1.654 0-3 1.346-3 3s1.346 3 3 3 3-1.346 3-3-1.346-3-3-3zm12-8v22c0 .215-.034.429-.103.632l-4 12a2.001 2.001 0 0 1-3.686.263L34.764 38H8c-3.364 0-6-2.636-6-6V10c0-3.364 2.636-6 6-6h32c3.364 0 6 2.636 6 6zm-4 0c0-1.159-.841-2-2-2H8c-1.159 0-2 .841-2 2v22c0 1.159.841 2 2 2h28a2 2 0 0 1 1.789 1.105l1.841 3.682L42 31.675V10z"/></svg>