@mjhls/mjh-framework 1.0.159 → 1.0.160

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.159
2
+ # mjh-framework v. 1.0.160
3
3
 
4
4
 
5
5
 
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';
@@ -10742,7 +10742,7 @@ var FigureComponent = function FigureComponent(_ref) {
10742
10742
  var screenWidth = window.innerWidth;
10743
10743
  if (screenWidth > 1000) {
10744
10744
  if (widthP === 'auto') {
10745
- setimageWidth('30%');
10745
+ if (imgFloat === 'none') setimageWidth('auto');else setimageWidth('30%');
10746
10746
  } else {
10747
10747
  setimageWidth(widthP + '%');
10748
10748
  }
@@ -10753,12 +10753,12 @@ var FigureComponent = function FigureComponent(_ref) {
10753
10753
  var screenWidth = window.innerWidth;
10754
10754
  if (screenWidth > 1000) {
10755
10755
  if (widthP === 'auto') {
10756
- setimageWidth('30%');
10756
+ if (imgFloat === 'none') setimageWidth('auto');else setimageWidth('30%');
10757
10757
  } else {
10758
10758
  setimageWidth(widthP + '%');
10759
10759
  }
10760
10760
  }
10761
- }, [widthP]);
10761
+ }, [widthP, imgFloat]);
10762
10762
 
10763
10763
  useEffect(function () {
10764
10764
  var screenWidth = window.innerWidth;
@@ -10777,20 +10777,17 @@ var FigureComponent = function FigureComponent(_ref) {
10777
10777
  'a',
10778
10778
  { href: link, target: blank ? '_blank' : '_self' },
10779
10779
  React__default.createElement(Figure.Image, { style: { width: '100%' }, className: 'figure-image', ref: imgElement, onLoad: loadImg, src: urlFor$1(node$$1, client).url(), alt: alt && alt }),
10780
- caption && React__default.createElement(
10781
- Figure.Caption,
10782
- { style: { width: '100%', maxWidth: '100%' } },
10783
- caption
10784
- )
10780
+ caption && React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } })
10785
10781
  ) : React__default.createElement(
10786
10782
  React__default.Fragment,
10787
10783
  null,
10788
10784
  React__default.createElement(Figure.Image, { style: { width: '100%' }, className: 'figure-image', ref: imgElement, onLoad: loadImg, src: urlFor$1(node$$1, client).url(), alt: alt && alt }),
10789
- caption && React__default.createElement(
10790
- Figure.Caption,
10791
- { style: { width: '100%', maxWidth: '100%' } },
10792
- caption
10793
- )
10785
+ caption && React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } })
10786
+ ),
10787
+ React__default.createElement(
10788
+ 'style',
10789
+ { jsx: 'true' },
10790
+ '\n figure-caption {\n font-size: 90%;\n color: #6c757d;\n }\n '
10794
10791
  )
10795
10792
  );
10796
10793
  };
@@ -10841,7 +10838,7 @@ var Slideshow = function Slideshow(_ref) {
10841
10838
  Carousel,
10842
10839
  { activeIndex: carouselIndex, onSelect: function onSelect(selectedIndex, e) {
10843
10840
  return onChangeSlide(selectedIndex, router);
10844
- }, indicators: false },
10841
+ } },
10845
10842
  slides && slides.map(function (slide) {
10846
10843
  return React__default.createElement(
10847
10844
  Carousel.Item,
@@ -14400,7 +14397,7 @@ var Sidebar = function Sidebar(_ref) {
14400
14397
 
14401
14398
  return React__default.createElement(
14402
14399
  'article',
14403
- { className: 'sidebar', style: { background: '#eee' } },
14400
+ { className: 'sidebar' },
14404
14401
  React__default.createElement(
14405
14402
  'div',
14406
14403
  null,
@@ -14414,7 +14411,7 @@ var Sidebar = function Sidebar(_ref) {
14414
14411
  React__default.createElement(
14415
14412
  'style',
14416
14413
  { jsx: 'true' },
14417
- '\n .sidebar {\n width: 40%;\n padding: 1rem 0 0;\n margin-left: 1rem;\n margin-right: 10%;\n }\n @media screen and (max-width: 991px) {\n .sidebar {\n width: unset;\n padding: 1.25rem;\n margin-left: 1rem;\n margin-right: 1rem;\n }\n }\n '
14414
+ '\n .sidebar {\n clear: both;\n float: right;\n background-color: #eee;\n width: 40%;\n padding: 1rem;\n margin: 0 0 1rem 1rem;\n }\n @media screen and (max-width: 991px) {\n .sidebar {\n float: none;\n width: auto;\n margin: 1rem 0;\n }\n }\n '
14418
14415
  )
14419
14416
  );
14420
14417
  };
@@ -15273,7 +15270,7 @@ var Slideshow$1 = function Slideshow(_ref) {
15273
15270
  Carousel,
15274
15271
  { activeIndex: carouselIndex, onSelect: function onSelect(selectedIndex, e) {
15275
15272
  return onChangeSlide$1(selectedIndex, router);
15276
- }, indicators: false },
15273
+ } },
15277
15274
  slides && slides.map(function (slide) {
15278
15275
  if (slide.slideshowImage && slide.slideshowImage.asset) {
15279
15276
  return React__default.createElement(