@mjhls/mjh-framework 1.0.89 → 1.0.91

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.
package/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
 
2
- # mjh-framework v. 1.0.89
2
+ # mjh-framework v. 1.0.91
3
3
 
4
4
 
5
5
  > Foundation Framework
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import React__default, { Component, useState, useEffect, useRef, createElement, createContext } from 'react';
1
+ import React__default, { Component, useState, useEffect, useRef, createContext, createElement } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import reactDom from 'react-dom';
4
4
  import Container from 'react-bootstrap/Container';
@@ -8,7 +8,7 @@ import Card from 'react-bootstrap/Card';
8
8
  import Link from 'next/link';
9
9
  import { withRouter, useRouter } from 'next/router';
10
10
  import Media from 'react-bootstrap/Media';
11
- import { Media as Media$1, Card as Card$1, Container as Container$1, Figure, Carousel, Table } from 'react-bootstrap';
11
+ import { Media as Media$1, Container as Container$1, Figure, Carousel, Table } from 'react-bootstrap';
12
12
  import moment from 'moment';
13
13
  import ListGroup from 'react-bootstrap/ListGroup';
14
14
  import Head from 'next/head';
@@ -6273,6 +6273,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index$$1, length
6273
6273
  };
6274
6274
 
6275
6275
  var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate, pageview, router, currentPage, setCurrentPage) {
6276
+
6276
6277
  return React__default.createElement(
6277
6278
  'div',
6278
6279
  null,
@@ -6287,13 +6288,22 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
6287
6288
  isVisible && changePageNumber(pageNumber, seoPaginate, pageview, router, currentPage, setCurrentPage);
6288
6289
  } },
6289
6290
  React__default.createElement(
6290
- Card$1,
6291
- { key: article._id ? article._id : index$$1 },
6291
+ React__default.Fragment,
6292
+ null,
6292
6293
  React__default.createElement(
6293
- Card$1.Body,
6294
- null,
6294
+ Media$1,
6295
+ { key: article._id ? article._id : index$$1, style: { marginBottom: '1.25rem', paddingBottom: '1.25rem', borderBottom: '1px solid #ddd' } },
6295
6296
  React__default.createElement(
6296
- Media$1,
6297
+ Link,
6298
+ { href: mapping[contentCategoryName] + '/[url]', as: mapping[contentCategoryName] + '/' + article.url.current },
6299
+ React__default.createElement(
6300
+ 'a',
6301
+ null,
6302
+ React__default.createElement('img', { width: 200, height: 130, className: 'mr-3', src: urlFor(builder, article.thumbnail.asset).url(), style: { objectFit: 'cover' }, alt: article.title })
6303
+ )
6304
+ ),
6305
+ React__default.createElement(
6306
+ Media$1.Body,
6297
6307
  null,
6298
6308
  React__default.createElement(
6299
6309
  Link,
@@ -6301,43 +6311,30 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
6301
6311
  React__default.createElement(
6302
6312
  'a',
6303
6313
  null,
6304
- React__default.createElement('img', { width: 200, height: 130, className: 'mr-3', src: urlFor(builder, article.thumbnail.asset).url(), style: { objectFit: 'cover' } })
6314
+ article.title && React__default.createElement(
6315
+ 'h4',
6316
+ { className: 'card-title', style: { fontWeight: '500', color: 'var(--gray-dark)', marginBottom: '.5rem' } },
6317
+ article.title
6318
+ )
6305
6319
  )
6306
6320
  ),
6307
- React__default.createElement(
6308
- Media$1.Body,
6309
- null,
6310
- React__default.createElement(
6311
- Link,
6312
- { href: mapping[contentCategoryName] + '/[url]', as: mapping[contentCategoryName] + '/' + article.url.current },
6313
- React__default.createElement(
6314
- 'a',
6315
- null,
6316
- article.title && React__default.createElement(
6317
- 'h5',
6318
- { className: 'card-title' },
6319
- article.title
6320
- )
6321
- )
6322
- ),
6323
- article.published && React__default.createElement(
6324
- 'h6',
6325
- { className: 'card-text' },
6326
- moment(article.published).format('MMMM DD, YYYY')
6327
- ),
6328
- article.authorDetails && article.authorDetails.length > 0 && article.authorDetails.map(function (authorDetail, index$$1) {
6329
- return React__default.createElement(
6330
- 'div',
6331
- { className: 'card-text d-inline', key: index$$1 },
6332
- renderAuthor(authorDetail.displayName, authorDetail.url, index$$1, article.authorDetails.length)
6333
- );
6334
- })
6321
+ article.published && React__default.createElement(
6322
+ 'p',
6323
+ { className: 'card-text', style: { color: 'var(--gray)', marginBottom: '.25rem' } },
6324
+ moment(article.published).format('MMMM DD, YYYY')
6325
+ ),
6326
+ article.authorDetails && article.authorDetails.length > 0 && article.authorDetails.map(function (authorDetail, index$$1) {
6327
+ return React__default.createElement(
6328
+ 'div',
6329
+ { className: 'card-text d-inline', key: index$$1 },
6330
+ renderAuthor(authorDetail.displayName, authorDetail.url, index$$1, article.authorDetails.length)
6331
+ );
6332
+ }),
6333
+ article.summary && React__default.createElement(
6334
+ 'p',
6335
+ { className: 'pt-2 card-text' },
6336
+ article.summary
6335
6337
  )
6336
- ),
6337
- article.summary && React__default.createElement(
6338
- 'p',
6339
- { className: 'pt-2 card-text' },
6340
- article.summary
6341
6338
  )
6342
6339
  )
6343
6340
  )
@@ -6372,6 +6369,7 @@ var usePrevious = function usePrevious(value) {
6372
6369
  };
6373
6370
 
6374
6371
  var QueueDeckExpanded = function QueueDeckExpanded(props) {
6372
+
6375
6373
  var router = useRouter();
6376
6374
  var initialData = props.dataRecord,
6377
6375
  client = props.client,
@@ -8426,13 +8424,13 @@ var FigureComponent = function FigureComponent(_ref) {
8426
8424
  var imgFloat = alignment.toLowerCase() === 'center' ? 'none' : alignment.toLowerCase();
8427
8425
  var figureMargin = void 0;
8428
8426
  if (imgFloat === 'none') {
8429
- figureMargin = '0 auto 2rem';
8427
+ figureMargin = '0 auto 1rem';
8430
8428
  }
8431
8429
  if (imgFloat === 'left') {
8432
- figureMargin = '0 2rem 2rem 0';
8430
+ figureMargin = '0 1rem 1rem 10%';
8433
8431
  }
8434
8432
  if (imgFloat === 'right') {
8435
- figureMargin = '0 0 2rem 2rem';
8433
+ figureMargin = '0 10% 1rem 1rem';
8436
8434
  }
8437
8435
  return React__default.createElement(
8438
8436
  Figure,
@@ -12042,13 +12040,13 @@ var Sidebar = function Sidebar(_ref) {
12042
12040
  content = _ref.content;
12043
12041
 
12044
12042
  return React__default.createElement(
12045
- Card$1,
12046
- { className: 'sidebar' },
12043
+ 'article',
12044
+ { className: 'sidebar', style: { background: '#eee', marginRight: '10%', marginLeft: '1rem', width: '40%', padding: '1rem 0 0' } },
12047
12045
  React__default.createElement(
12048
- Card$1.Body,
12046
+ 'div',
12049
12047
  null,
12050
12048
  React__default.createElement(
12051
- Card$1.Title,
12049
+ 'h3',
12052
12050
  null,
12053
12051
  caption
12054
12052
  ),