@mjhls/mjh-framework 1.0.67 → 1.0.69

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,4 +1,4 @@
1
- # mjh-framework v. 1.0.67
1
+ # mjh-framework v. 1.0.69
2
2
 
3
3
  > Foundation Framework
4
4
 
package/dist/index.es.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import React__default, { Component, useState, createElement, createContext } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import reactDom from 'react-dom';
4
+ import Container from 'react-bootstrap/Container';
4
5
  import Row from 'react-bootstrap/Row';
5
6
  import Col from 'react-bootstrap/Col';
6
7
  import Card from 'react-bootstrap/Card';
@@ -11,7 +12,6 @@ import ListGroup from 'react-bootstrap/ListGroup';
11
12
  import Head from 'next/head';
12
13
  import Accordion from 'react-bootstrap/Accordion';
13
14
  import { useAccordionToggle } from 'react-bootstrap/AccordionToggle';
14
- import Container from 'react-bootstrap/Container';
15
15
  import Nav from 'react-bootstrap/Nav';
16
16
  import Navbar from 'react-bootstrap/Navbar';
17
17
  import NavDropdown from 'react-bootstrap/NavDropdown';
@@ -4084,7 +4084,11 @@ var DeckContent = function (_React$Component) {
4084
4084
  React__default.createElement(
4085
4085
  InfiniteScroll,
4086
4086
  { dataLength: this.state.data.length, next: this.loadMore, hasMore: this.state.scrolling, scrollThreshold: 0.9 },
4087
- this.cardLoader(page, columns, variant)
4087
+ React__default.createElement(
4088
+ Container,
4089
+ null,
4090
+ this.cardLoader(page, columns, variant)
4091
+ )
4088
4092
  ),
4089
4093
  React__default.createElement(
4090
4094
  'noscript',
@@ -4094,7 +4098,11 @@ var DeckContent = function (_React$Component) {
4094
4098
  ) : React__default.createElement(
4095
4099
  React__default.Fragment,
4096
4100
  null,
4097
- this.cardLoader(page, columns, variant),
4101
+ React__default.createElement(
4102
+ Container,
4103
+ null,
4104
+ this.cardLoader(page, columns, variant)
4105
+ ),
4098
4106
  React__default.createElement(
4099
4107
  'div',
4100
4108
  { style: { padding: '0px 10px' } },
@@ -5280,11 +5288,19 @@ var DeckQueue = function (_React$Component) {
5280
5288
  autoScroll ? React__default.createElement(
5281
5289
  InfiniteScroll,
5282
5290
  { dataLength: this.state.data.length, next: this.loadMore, hasMore: this.state.scrolling },
5283
- this.cardLoader(page, columns, variant)
5291
+ React__default.createElement(
5292
+ Container,
5293
+ null,
5294
+ this.cardLoader(page, columns, variant)
5295
+ )
5284
5296
  ) : React__default.createElement(
5285
5297
  React__default.Fragment,
5286
5298
  null,
5287
- this.cardLoader(page, columns, variant),
5299
+ React__default.createElement(
5300
+ Container,
5301
+ null,
5302
+ this.cardLoader(page, columns, variant)
5303
+ ),
5288
5304
  React__default.createElement(
5289
5305
  'div',
5290
5306
  { style: { padding: '0px 10px' } },
@@ -5377,79 +5393,83 @@ var TaxonomyCard = function TaxonomyCard(props) {
5377
5393
  'div',
5378
5394
  { className: 'contentDeck' },
5379
5395
  React__default.createElement(
5380
- Row,
5396
+ Container,
5381
5397
  null,
5382
- data && data.map(function (row, index) {
5383
- if (columns === 'rotate' && itemCounter % 3 === 0) {
5384
- lgVar = 12;
5385
- } else if (columns && columns !== 'rotate') {
5386
- lgVar = Math.floor(12 / columns);
5387
- } else {
5388
- lgVar = 6;
5389
- }
5390
- var thumbnailURL = row.thumbnail && row.thumbnail.asset ? urlFor(row.thumbnail.asset).url() : defaultImage;
5391
- return React__default.createElement(
5392
- Col,
5393
- { key: itemCounter, md: 12, lg: lgVar, counter: itemCounter++, style: { display: 'flex', flex: '1 0 auto' } },
5394
- React__default.createElement(
5395
- Card,
5396
- { className: 'taxonomy-card', style: { flexDirection: mode, position: 'relative', overflow: 'hidden' } },
5398
+ React__default.createElement(
5399
+ Row,
5400
+ null,
5401
+ data && data.map(function (row, index) {
5402
+ if (columns === 'rotate' && itemCounter % 3 === 0) {
5403
+ lgVar = 12;
5404
+ } else if (columns && columns !== 'rotate') {
5405
+ lgVar = Math.floor(12 / columns);
5406
+ } else {
5407
+ lgVar = 6;
5408
+ }
5409
+ var thumbnailURL = row.thumbnail && row.thumbnail.asset ? urlFor(row.thumbnail.asset).url() : defaultImage;
5410
+ return React__default.createElement(
5411
+ Col,
5412
+ { key: itemCounter, md: 12, lg: lgVar, counter: itemCounter++, style: { display: 'flex', flex: '1 0 auto' } },
5397
5413
  React__default.createElement(
5398
- Card.Body,
5399
- null,
5414
+ Card,
5415
+ { className: 'taxonomy-card', style: { flexDirection: mode, position: 'relative', overflow: 'hidden' } },
5400
5416
  React__default.createElement(
5401
- Row,
5417
+ Card.Body,
5402
5418
  null,
5403
- thumbnailURL && React__default.createElement(
5404
- Col,
5405
- null,
5406
- React__default.createElement(Card.Img, { variant: 'top', src: thumbnailURL })
5407
- ),
5408
5419
  React__default.createElement(
5409
- Col,
5420
+ Row,
5410
5421
  null,
5411
- row.url ? React__default.createElement(
5412
- Link,
5413
- { href: row.url, as: row.url },
5414
- React__default.createElement(
5415
- 'a',
5416
- null,
5417
- React__default.createElement(
5418
- Card.Title,
5419
- null,
5420
- row.name
5421
- )
5422
- )
5423
- ) : React__default.createElement(
5424
- Card.Title,
5422
+ thumbnailURL && React__default.createElement(
5423
+ Col,
5425
5424
  null,
5426
- row.name
5425
+ React__default.createElement(Card.Img, { variant: 'top', src: thumbnailURL })
5427
5426
  ),
5428
5427
  React__default.createElement(
5429
- Card.Text,
5428
+ Col,
5430
5429
  null,
5431
- row.summary
5430
+ row.url ? React__default.createElement(
5431
+ Link,
5432
+ { href: row.url, as: row.url },
5433
+ React__default.createElement(
5434
+ 'a',
5435
+ null,
5436
+ React__default.createElement(
5437
+ Card.Title,
5438
+ null,
5439
+ row.name
5440
+ )
5441
+ )
5442
+ ) : React__default.createElement(
5443
+ Card.Title,
5444
+ null,
5445
+ row.name
5446
+ ),
5447
+ React__default.createElement(
5448
+ Card.Text,
5449
+ null,
5450
+ row.summary
5451
+ )
5432
5452
  )
5453
+ ),
5454
+ icon && React__default.createElement(
5455
+ 'span',
5456
+ {
5457
+ className: 'taxonomy-icon',
5458
+ style: {
5459
+ position: 'absolute',
5460
+ right: '20px',
5461
+ top: '50%',
5462
+ transform: 'translateY(-50%) translateX(50px)',
5463
+ transition: 'all .25s',
5464
+ pointerEvents: 'none'
5465
+ } },
5466
+ '\u2192'
5433
5467
  )
5434
- ),
5435
- icon && React__default.createElement(
5436
- 'span',
5437
- {
5438
- className: 'taxonomy-icon',
5439
- style: {
5440
- position: 'absolute',
5441
- right: '20px',
5442
- top: '50%',
5443
- transform: 'translateY(-50%) translateX(50px)',
5444
- transition: 'all .25s',
5445
- pointerEvents: 'none'
5446
- } },
5447
- '\u2192'
5448
5468
  )
5449
5469
  )
5450
- )
5451
- );
5452
- })
5470
+ );
5471
+ })
5472
+ )
5453
5473
  ),
5454
5474
  icon && React__default.createElement(
5455
5475
  'style',
@@ -7227,7 +7247,7 @@ var AD728x90 = function AD728x90(_ref) {
7227
7247
  lib_1,
7228
7248
  {
7229
7249
  dfpNetworkId: networkID,
7230
- targetingArguments: targeting.desktop,
7250
+ targetingArguments: targeting,
7231
7251
  sizeMapping: [{ viewport: [768, 1], sizes: [[728, 90], [970, 90]] }, { viewport: [1, 1], sizes: [[320, 50], [300, 50]] }],
7232
7252
  lazyLoad: { fetchMarginPercent: 500, renderMarginPercent: 200, mobileScaling: 2.0 } },
7233
7253
  React__default.createElement(
@@ -7325,12 +7345,12 @@ var AD = function AD(_ref) {
7325
7345
  sizes = _ref.sizes,
7326
7346
  minInViewPercent = _ref.minInViewPercent,
7327
7347
  _ref$targeting = _ref.targeting,
7328
- targeting = _ref$targeting === undefined ? { desktop: {} } : _ref$targeting;
7348
+ targeting = _ref$targeting === undefined ? {} : _ref$targeting;
7329
7349
 
7330
7350
 
7331
7351
  return React__default.createElement(
7332
7352
  lib_1,
7333
- { dfpNetworkId: networkID, targetingArguments: targeting.desktop, sizeMapping: sizeMapping, lazyLoad: { fetchMarginPercent: 500, renderMarginPercent: 200, mobileScaling: 2.0 } },
7353
+ { dfpNetworkId: networkID, targetingArguments: targeting, sizeMapping: sizeMapping, lazyLoad: { fetchMarginPercent: 500, renderMarginPercent: 200, mobileScaling: 2.0 } },
7334
7354
  React__default.createElement(
7335
7355
  'div',
7336
7356
  { className: className },