@bento-core/about 1.0.1-CDS.5 → 1.0.1-ins.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.
@@ -6,10 +6,9 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _core = require("@material-ui/core");
9
- var _reactRouterDom = require("react-router-dom");
10
9
  var _xoomInOutView = _interopRequireDefault(require("./xoomInOutView"));
10
+ var _AboutTableExternalLink = _interopRequireDefault(require("./assets/About-Table-ExternalLink.svg"));
11
11
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
13
12
  const AboutBody = _ref => {
14
13
  let {
15
14
  classes,
@@ -57,9 +56,7 @@ const AboutBody = _ref => {
57
56
  // Alphetised sub ordered list
58
57
  _react.default.createElement("ol", {
59
58
  type: "a"
60
- }, listObj.listWithAlpahbets.map(listObj1 => /*#__PURE__*/_react.default.createElement("li", null, listObj1.includes('$$') ? boldText(listObj1) : listObj1))) : /*#__PURE__*/_react.default.createElement("li", null, listObj.includes('$$') ? boldText(listObj) : listObj)))), contentObj.listWithBullets && /*#__PURE__*/_react.default.createElement("div", {
61
- className: classes.text
62
- }, /*#__PURE__*/_react.default.createElement("ul", null, contentObj.listWithBullets.map(listObj => /*#__PURE__*/_react.default.createElement("li", null, listObj.includes('$$') ? boldText(listObj) : listObj)))), contentObj.listWithAlpahbets && /*#__PURE__*/_react.default.createElement("div", {
59
+ }, listObj.listWithAlpahbets.map(listObj1 => /*#__PURE__*/_react.default.createElement("li", null, listObj1.includes('$$') ? boldText(listObj1) : listObj1))) : /*#__PURE__*/_react.default.createElement("li", null, listObj.includes('$$') ? boldText(listObj) : listObj)))), contentObj.listWithAlpahbets && /*#__PURE__*/_react.default.createElement("div", {
63
60
  className: classes.text
64
61
  }, /*#__PURE__*/_react.default.createElement("ol", {
65
62
  type: "a"
@@ -72,6 +69,7 @@ const AboutBody = _ref => {
72
69
  const linkAttrs = splitedParagraph.match(/\((.*)\)/).pop().split(' ');
73
70
  const target = linkAttrs.find(link => link.includes('target:'));
74
71
  const url = linkAttrs.find(link => link.includes('url:'));
72
+ const type = linkAttrs.find(link => link.includes('type:')); // 0 : no img
75
73
  const href = splitedParagraph.match(/\((.*)\)/).pop();
76
74
  const link = /*#__PURE__*/_react.default.createElement(_core.Link, {
77
75
  title: title,
@@ -81,7 +79,7 @@ const AboutBody = _ref => {
81
79
  color: "inherit",
82
80
  className: classes.link
83
81
  }, title);
84
- return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, link, href.includes('@') || !href.includes('http') ? '' : /*#__PURE__*/_react.default.createElement("img", {
82
+ return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, link, type ? '' : /*#__PURE__*/_react.default.createElement("img", {
85
83
  src: externalIconImage
86
84
  // externalIconImage: 'https://raw.githubusercontent.com/CBIIT/datacommons-assets/main/common/images/logos/svgs/externalLinkIcon.svg',
87
85
  ,
@@ -189,69 +187,20 @@ const AboutBody = _ref => {
189
187
  outputHTML = /*#__PURE__*/_react.default.createElement("td", {
190
188
  className: classes.tableCell
191
189
  }, link, type ? '' : /*#__PURE__*/_react.default.createElement("img", {
192
- src: externalIconImage,
190
+ src: _AboutTableExternalLink.default,
193
191
  alt: "outbounnd web site icon",
194
192
  className: classes.tablelinkIcon
195
193
  }));
196
194
  }
197
195
  return outputHTML;
198
- }))))))), /*#__PURE__*/_react.default.createElement("br", null))) : ''), data.downloadableContentTitle && /*#__PURE__*/_react.default.createElement("div", {
199
- className: classes.downloadableContentContainer
200
- }, /*#__PURE__*/_react.default.createElement("div", {
201
- className: classes.downloadableContentTitle
202
- }, data.downloadableContentTitle), /*#__PURE__*/_react.default.createElement("span", {
203
- className: classes.text
204
- }, data.downloadableContent ? data.downloadableContent.map(contentObj => /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, contentObj.paragraph && /*#__PURE__*/_react.default.createElement("div", {
205
- className: classes.text
206
- }, contentObj.paragraph.split('$$').map(splitedParagraph => {
207
- // Checking for regex ()[] pattern
208
- if (splitedParagraph != null && (/\[(.+)\]\((.+)\)/g.test(splitedParagraph) || /\((.+)\)\[(.+)\]/g.test(splitedParagraph))) {
209
- const title = splitedParagraph.match(/\[(.*)\]/).pop();
210
- const linkAttrs = splitedParagraph.match(/\((.*)\)/).pop().split(' ');
211
- const target = linkAttrs.find(link => link.includes('target:'));
212
- const url = linkAttrs.find(link => link.includes('url:'));
213
- const href = splitedParagraph.match(/\((.*)\)/).pop();
214
- const link = /*#__PURE__*/_react.default.createElement(_core.Link, {
215
- title: title,
216
- target: target ? target.replace('target:', '') : '_blank',
217
- rel: "noreferrer",
218
- href: url ? url.replace('url:', '') : href && href.includes('@') ? "mailto:".concat(href) : href,
219
- color: "inherit",
220
- className: classes.link
221
- }, title);
222
- return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, link, href.includes('@') || !href.includes('http') ? '' : /*#__PURE__*/_react.default.createElement("img", {
223
- src: externalIconImage
224
- // externalIconImage: 'https://raw.githubusercontent.com/CBIIT/datacommons-assets/main/common/images/logos/svgs/externalLinkIcon.svg',
225
- ,
226
- alt: "outbounnd web site icon",
227
- className: classes.linkIcon
228
- }));
229
- }
230
- return splitedParagraph;
231
- })))) : ''))), (data.imageLocation === 'right' || data.actionButtonLabel && data.actionLink) && /*#__PURE__*/_react.default.createElement(_core.Grid, {
196
+ }))))))), /*#__PURE__*/_react.default.createElement("br", null))) : '')), data.imageLocation === 'right' && /*#__PURE__*/_react.default.createElement(_core.Grid, {
232
197
  item: true,
233
198
  lg: 3,
234
199
  md: 3,
235
200
  sm: 12,
236
201
  xs: 12,
237
202
  className: classes.imageSection
238
- }, data.image, data.actionButtonLabel && data.actionLink && /*#__PURE__*/_react.default.createElement("div", {
239
- className: classes.actionSection
240
- }, data.actionTitle && /*#__PURE__*/_react.default.createElement("div", {
241
- className: classes.actionTitle
242
- }, data.actionTitle), /*#__PURE__*/_react.default.createElement(_core.Link, _extends({}, data.actionLink && data.actionLink.includes('http') ? {
243
- href: data.actionLink,
244
- target: '_blank',
245
- rel: 'noreferrer'
246
- } : {
247
- component: _reactRouterDom.Link,
248
- to: data.actionLink
249
- }, {
250
- title: data.actionButtonLabel,
251
- color: "inherit",
252
- underline: "none",
253
- className: classes.actionLink
254
- }), data.actionButtonLabel))))), data.secondaryZoomImageTitle && /*#__PURE__*/_react.default.createElement("div", {
203
+ }, data.image))), data.secondaryZoomImageTitle && /*#__PURE__*/_react.default.createElement("div", {
255
204
  className: classes.secondayTitle
256
205
  }, data.secondaryZoomImageTitle), data.secondaryImage && /*#__PURE__*/_react.default.createElement(_xoomInOutView.default, null, data.secondaryImageData));
257
206
  };
@@ -264,9 +213,6 @@ const styles = () => ({
264
213
  lineHeight: '22px',
265
214
  maxWidth: '1440px'
266
215
  },
267
- tabbedParag: {
268
- paddingLeft: '40px'
269
- },
270
216
  maxWidthContainer: {
271
217
  margin: '0px auto 0px auto',
272
218
  maxWidth: '1440px'
@@ -290,83 +236,32 @@ const styles = () => ({
290
236
  },
291
237
  title: props => ({
292
238
  color: props.titleColor,
293
- fontWeight: '500',
294
- fontSize: '24px'
239
+ fontWeight: 'bold'
295
240
  }),
296
241
  email: props => ({
297
242
  color: props.linkColor,
298
243
  fontWeight: 'bold'
299
244
  }),
300
245
  contentSection: {
301
- padding: props => props.data.imageLocation === 'right' || props.data.actionButtonLabel && props.data.actionLink ? '8px 25px 8px 25px !important' : '8px 0px 8px 25px !important',
302
- marginBottom: props => props.data.marginBottom ? props.data.marginBottom : 0,
303
- float: 'left',
304
- background: 'white'
246
+ padding: props => props.data.imageLocation === 'right' ? '8px 25px 8px 0px !important' : '8px 0px 8px 25px !important',
247
+ float: 'left'
305
248
  },
306
249
  imageSection: {
307
250
  float: 'left'
308
251
  },
309
- actionSection: {
310
- display: 'flex',
311
- width: '100%',
312
- padding: '25px 25px 35px',
313
- flexDirection: 'column',
314
- alignItems: 'center',
315
- flexShrink: 0,
316
- border: '0.5px solid #98B5CB',
317
- background: '#EBF3F7',
318
- marginTop: '19px'
319
- },
320
- actionTitle: {
321
- color: '#7A9BB1',
322
- textAlign: 'center',
323
- fontFamily: 'Lato',
324
- fontSize: '19px',
325
- fontStyle: 'normal',
326
- fontWeight: '700',
327
- lineHeight: '25px',
328
- letterSpacing: '0.15px',
329
- textTransform: 'uppercase',
330
- wordBreak: 'break-word',
331
- marginBottom: '22px'
332
- },
333
- actionLink: {
334
- display: 'flex',
335
- width: '210px',
336
- height: 'fit-content',
337
- minHeight: '45px',
338
- justifyContent: 'center',
339
- alignItems: 'center',
340
- gap: '10px',
341
- flexShrink: '0',
342
- borderRadius: '10px',
343
- border: '1px solid #42779A',
344
- background: '#0E6292',
345
- color: '#FFF',
346
- textAlign: 'center',
347
- fontFamily: 'Lato',
348
- fontSize: '12px',
349
- fontStyle: 'normal',
350
- fontWeight: 600,
351
- lineHeight: 'normal',
352
- letterSpacing: '1px',
353
- wordBreak: 'break-word',
354
- padding: '15.5px'
355
- },
356
252
  aboutSection: {
357
- padding: '0px 45px'
253
+ padding: '60px 45px'
358
254
  },
359
255
  img: {
360
256
  width: '100%'
361
257
  },
362
258
  linkIcon: {
363
- width: '1em',
259
+ width: '20px',
364
260
  verticalAlign: 'sub',
365
- margin: '0px 0px 2px 2px'
261
+ margin: '0px 0px 0px 2px'
366
262
  },
367
263
  link: props => ({
368
264
  color: props.linkColor,
369
- fontWeight: '600',
370
265
  '&:hover': {
371
266
  color: props.linkColor
372
267
  }
@@ -388,6 +283,7 @@ const styles = () => ({
388
283
  borderCollapse: 'collapse',
389
284
  fontSize: '12px',
390
285
  fontWeight: 'bold',
286
+ letterSpacing: '0.025em',
391
287
  lineHeight: '30px',
392
288
  textAlign: 'left',
393
289
  width: '100%'
@@ -416,19 +312,6 @@ const styles = () => ({
416
312
  },
417
313
  MyCasesWizardStep4: {
418
314
  width: '600px'
419
- },
420
- downloadableContentContainer: {
421
- background: '#ebebeb',
422
- padding: '32px',
423
- borderRadius: '8px'
424
- },
425
- downloadableContentTitle: {
426
- fontWeight: 'bold',
427
- marginBottom: '20px',
428
- color: '#1280AE',
429
- fontSize: '20px',
430
- fontFamily: 'Lato',
431
- letterSpacing: '0.025em'
432
315
  }
433
316
  });
434
317
  AboutBody.defaultProps = {
@@ -7,11 +7,6 @@ exports.default = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _core = require("@material-ui/core");
9
9
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
11
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
12
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
13
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
14
- function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
15
10
  const AboutHeader = _ref => {
16
11
  let {
17
12
  classes,
@@ -34,13 +29,13 @@ const styles = () => ({
34
29
  header: {
35
30
  padding: '45px'
36
31
  },
37
- container: props => _objectSpread({
32
+ container: props => ({
38
33
  background: props.background
39
- }, props.container),
40
- whitePadding: props => _objectSpread({
41
- height: props.whitePadding ? props.whitePadding.height : 0,
42
- background: props.background
43
- }, props.whitePadding),
34
+ }),
35
+ whitePadding: {
36
+ height: '6px',
37
+ background: 'white'
38
+ },
44
39
  titleBody: {
45
40
  textAlign: 'center'
46
41
  },
package/package.json CHANGED
@@ -1,19 +1,21 @@
1
1
  {
2
2
  "name": "@bento-core/about",
3
- "version": "1.0.1-CDS.5",
4
- "description": "",
3
+ "version": "1.0.1-ins.1",
5
4
  "main": "dist/index.js",
6
5
  "scripts": {
7
6
  "build": "npm run lint && cross-env-shell rm -rf dist && NODE_ENV=production BABEL_ENV=es babel src --out-dir dist --copy-files",
8
7
  "test": "echo \"Error: no test specified\" && exit 1",
9
8
  "lint": "eslint src"
10
9
  },
11
- "repository": "https://github.com/CBIIT/bento-frontend",
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/CBIIT/bento-frontend.git"
13
+ },
12
14
  "publishConfig": {
13
15
  "access": "public"
14
16
  },
15
17
  "dependencies": {
16
- "@bento-core/facet-filter": "^1.0.1-CDS.2",
18
+ "@bento-core/facet-filter": "1.0.1-ins.1",
17
19
  "lodash": "^4.17.20",
18
20
  "react-zoom-pan-pinch": "*"
19
21
  },
@@ -22,10 +24,14 @@
22
24
  "clsx": "^1.2.1",
23
25
  "react": "^17.0.2",
24
26
  "react-dom": "^17.0.0",
25
- "react-redux": "^7.2.1",
26
- "react-router-dom": "^5.1.2"
27
+ "react-redux": "^7.2.1"
27
28
  },
28
29
  "author": "CTOS Bento Team",
29
30
  "license": "ISC",
30
- "gitHead": "d10768d184bf53f134bfc08489b0afcd8b8f0fc7"
31
+ "bugs": {
32
+ "url": "https://github.com/CBIIT/bento-frontend/issues"
33
+ },
34
+ "homepage": "https://github.com/CBIIT/bento-frontend#readme",
35
+ "devDependencies": {},
36
+ "description": ""
31
37
  }
@@ -1,11 +1,9 @@
1
1
  import React from 'react';
2
2
  import { Grid, Link, withStyles } from '@material-ui/core';
3
- import { Link as RouterLink } from 'react-router-dom';
4
3
  import XoomInOut from './xoomInOutView';
4
+ import tableExternalIcon from './assets/About-Table-ExternalLink.svg';
5
5
 
6
- const AboutBody = ({
7
- classes, data, externalIconImage,
8
- }) => {
6
+ const AboutBody = ({ classes, data, externalIconImage }) => {
9
7
  function boldText(text) {
10
8
  const boldedText = text.split('$$').map((splitedText) => {
11
9
  if (splitedText != null && (/\*(.*)\*/.test(splitedText))) {
@@ -46,14 +44,6 @@ const AboutBody = ({
46
44
  </ol>
47
45
  </div>
48
46
  )}
49
- {contentObj.listWithBullets && (
50
- <div className={classes.text}>
51
- {/* Alphabetised ordered list */}
52
- <ul>
53
- { contentObj.listWithBullets.map((listObj) => <li>{listObj.includes('$$') ? boldText(listObj) : listObj}</li>)}
54
- </ul>
55
- </div>
56
- )}
57
47
  {/* Ordered List with Alphabets logic */}
58
48
  {contentObj.listWithAlpahbets && (
59
49
  <div className={classes.text}>
@@ -74,6 +64,7 @@ const AboutBody = ({
74
64
  const linkAttrs = splitedParagraph.match(/\((.*)\)/).pop().split(' ');
75
65
  const target = linkAttrs.find((link) => link.includes('target:'));
76
66
  const url = linkAttrs.find((link) => link.includes('url:'));
67
+ const type = linkAttrs.find((link) => link.includes('type:')); // 0 : no img
77
68
  const href = splitedParagraph.match(/\((.*)\)/).pop();
78
69
 
79
70
  const link = (
@@ -92,7 +83,7 @@ const AboutBody = ({
92
83
  return (
93
84
  <>
94
85
  {link}
95
- {href.includes('@') || !href.includes('http') ? '' : (
86
+ {type ? '' : (
96
87
  <img
97
88
  src={externalIconImage}
98
89
  // externalIconImage: 'https://raw.githubusercontent.com/CBIIT/datacommons-assets/main/common/images/logos/svgs/externalLinkIcon.svg',
@@ -216,7 +207,7 @@ const AboutBody = ({
216
207
  {link}
217
208
  {type ? '' : (
218
209
  <img
219
- src={externalIconImage}
210
+ src={tableExternalIcon}
220
211
  alt="outbounnd web site icon"
221
212
  className={classes.tablelinkIcon}
222
213
  />
@@ -238,93 +229,12 @@ const AboutBody = ({
238
229
  </>
239
230
  )) : ''}
240
231
  </span>
241
- {data.downloadableContentTitle
242
- && (
243
- <div className={classes.downloadableContentContainer}>
244
- <div className={classes.downloadableContentTitle}>{data.downloadableContentTitle}</div>
245
- <span className={classes.text}>
246
- {data.downloadableContent ? data.downloadableContent.map((contentObj) => (
247
- <>
248
- {/* Ordered List with Numbers logic */}
249
-
250
- {/* Paragraphs */}
251
- {contentObj.paragraph && (
252
- <div className={classes.text}>
253
- { contentObj.paragraph.split('$$').map((splitedParagraph) => {
254
- // Checking for regex ()[] pattern
255
- if (splitedParagraph != null && ((/\[(.+)\]\((.+)\)/g.test(splitedParagraph)) || (/\((.+)\)\[(.+)\]/g.test(splitedParagraph)))) {
256
- const title = splitedParagraph.match(/\[(.*)\]/).pop();
257
- const linkAttrs = splitedParagraph.match(/\((.*)\)/).pop().split(' ');
258
- const target = linkAttrs.find((link) => link.includes('target:'));
259
- const url = linkAttrs.find((link) => link.includes('url:'));
260
- const href = splitedParagraph.match(/\((.*)\)/).pop();
261
-
262
- const link = (
263
- <Link
264
- title={title}
265
- target={target ? target.replace('target:', '') : '_blank'}
266
- rel="noreferrer"
267
- href={url ? url.replace('url:', '') : (href && href.includes('@') ? `mailto:${href}` : href)}
268
- color="inherit"
269
- className={classes.link}
270
- >
271
- {title}
272
- </Link>
273
- );
274
-
275
- return (
276
- <>
277
- {link}
278
- {href.includes('@') || !href.includes('http') ? '' : (
279
- <img
280
- src={externalIconImage}
281
- // externalIconImage: 'https://raw.githubusercontent.com/CBIIT/datacommons-assets/main/common/images/logos/svgs/externalLinkIcon.svg',
282
- alt="outbounnd web site icon"
283
- className={classes.linkIcon}
284
- />
285
- )}
286
-
287
- </>
288
- );
289
- }
290
-
291
- return splitedParagraph;
292
- })}
293
- </div>
294
- )}
295
- </>
296
- )) : ''}
297
- </span>
298
- </div>
299
- )}
300
232
  </Grid>
301
- {(data.imageLocation === 'right'
302
- || (data.actionButtonLabel && data.actionLink))
233
+ {data.imageLocation === 'right'
303
234
  && (
304
- <Grid item lg={3} md={3} sm={12} xs={12} className={classes.imageSection}>
305
- {data.image}
306
-
307
- {data.actionButtonLabel && data.actionLink && (
308
- <div className={classes.actionSection}>
309
- {data.actionTitle && (
310
- <div className={classes.actionTitle}>
311
- {data.actionTitle}
312
- </div>
313
- )}
314
- <Link
315
- {...(data.actionLink && data.actionLink.includes('http')
316
- ? { href: data.actionLink, target: '_blank', rel: 'noreferrer' }
317
- : { component: RouterLink, to: data.actionLink })}
318
- title={data.actionButtonLabel}
319
- color="inherit"
320
- underline="none"
321
- className={classes.actionLink}
322
- >
323
- {data.actionButtonLabel}
324
- </Link>
325
- </div>
326
- )}
327
- </Grid>
235
+ <Grid item lg={3} md={3} sm={12} xs={12} className={classes.imageSection}>
236
+ {data.image}
237
+ </Grid>
328
238
  )}
329
239
  </Grid>
330
240
  </div>
@@ -344,9 +254,6 @@ const styles = () => ({
344
254
  lineHeight: '22px',
345
255
  maxWidth: '1440px',
346
256
  },
347
- tabbedParag: {
348
- paddingLeft: '40px',
349
- },
350
257
  maxWidthContainer: {
351
258
  margin: '0px auto 0px auto',
352
259
  maxWidth: '1440px',
@@ -370,84 +277,33 @@ const styles = () => ({
370
277
  },
371
278
  title: (props) => ({
372
279
  color: props.titleColor,
373
- fontWeight: '500',
374
- fontSize: '24px',
280
+ fontWeight: 'bold',
375
281
  }),
376
282
  email: (props) => ({
377
283
  color: props.linkColor,
378
284
  fontWeight: 'bold',
379
285
  }),
380
286
  contentSection: {
381
- padding: (props) => ((props.data.imageLocation === 'right' || (props.data.actionButtonLabel && props.data.actionLink))
382
- ? '8px 25px 8px 25px !important' : '8px 0px 8px 25px !important'),
383
- marginBottom: (props) => (props.data.marginBottom ? props.data.marginBottom : 0),
287
+ padding: (props) => (props.data.imageLocation === 'right'
288
+ ? '8px 25px 8px 0px !important' : '8px 0px 8px 25px !important'),
384
289
  float: 'left',
385
- background: 'white',
386
290
  },
387
291
  imageSection: {
388
292
  float: 'left',
389
293
  },
390
- actionSection: {
391
- display: 'flex',
392
- width: '100%',
393
- padding: '25px 25px 35px',
394
- flexDirection: 'column',
395
- alignItems: 'center',
396
- flexShrink: 0,
397
- border: '0.5px solid #98B5CB',
398
- background: '#EBF3F7',
399
- marginTop: '19px',
400
- },
401
- actionTitle: {
402
- color: '#7A9BB1',
403
- textAlign: 'center',
404
- fontFamily: 'Lato',
405
- fontSize: '19px',
406
- fontStyle: 'normal',
407
- fontWeight: '700',
408
- lineHeight: '25px',
409
- letterSpacing: '0.15px',
410
- textTransform: 'uppercase',
411
- wordBreak: 'break-word',
412
- marginBottom: '22px',
413
- },
414
- actionLink: {
415
- display: 'flex',
416
- width: '210px',
417
- height: 'fit-content',
418
- minHeight: '45px',
419
- justifyContent: 'center',
420
- alignItems: 'center',
421
- gap: '10px',
422
- flexShrink: '0',
423
- borderRadius: '10px',
424
- border: '1px solid #42779A',
425
- background: '#0E6292',
426
- color: '#FFF',
427
- textAlign: 'center',
428
- fontFamily: 'Lato',
429
- fontSize: '12px',
430
- fontStyle: 'normal',
431
- fontWeight: 600,
432
- lineHeight: 'normal',
433
- letterSpacing: '1px',
434
- wordBreak: 'break-word',
435
- padding: '15.5px',
436
- },
437
294
  aboutSection: {
438
- padding: '0px 45px',
295
+ padding: '60px 45px',
439
296
  },
440
297
  img: {
441
298
  width: '100%',
442
299
  },
443
300
  linkIcon: {
444
- width: '1em',
301
+ width: '20px',
445
302
  verticalAlign: 'sub',
446
- margin: '0px 0px 2px 2px',
303
+ margin: '0px 0px 0px 2px',
447
304
  },
448
305
  link: (props) => ({
449
306
  color: props.linkColor,
450
- fontWeight: '600',
451
307
  '&:hover': {
452
308
  color: props.linkColor,
453
309
  },
@@ -469,6 +325,7 @@ const styles = () => ({
469
325
  borderCollapse: 'collapse',
470
326
  fontSize: '12px',
471
327
  fontWeight: 'bold',
328
+ letterSpacing: '0.025em',
472
329
  lineHeight: '30px',
473
330
  textAlign: 'left',
474
331
  width: '100%',
@@ -499,19 +356,6 @@ const styles = () => ({
499
356
  MyCasesWizardStep4: {
500
357
  width: '600px',
501
358
  },
502
- downloadableContentContainer: {
503
- background: '#ebebeb',
504
- padding: '32px',
505
- borderRadius: '8px',
506
- },
507
- downloadableContentTitle: {
508
- fontWeight: 'bold',
509
- marginBottom: '20px',
510
- color: '#1280AE',
511
- fontSize: '20px',
512
- fontFamily: 'Lato',
513
- letterSpacing: '0.025em',
514
- },
515
359
  });
516
360
 
517
361
  AboutBody.defaultProps = {
@@ -16,13 +16,11 @@ const styles = () => ({
16
16
  },
17
17
  container: (props) => ({
18
18
  background: props.background,
19
- ...props.container,
20
- }),
21
- whitePadding: (props) => ({
22
- height: props.whitePadding ? props.whitePadding.height : 0,
23
- background: props.background,
24
- ...props.whitePadding,
25
19
  }),
20
+ whitePadding: {
21
+ height: '6px',
22
+ background: 'white',
23
+ },
26
24
  titleBody: {
27
25
  textAlign: 'center',
28
26
  },