@mjhls/mjh-framework 1.0.159 → 1.0.161
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 +1 -1
- package/dist/index.es.js +20 -18
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +19 -17
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.es.js
CHANGED
|
@@ -18,7 +18,7 @@ import ListGroup from 'react-bootstrap/ListGroup';
|
|
|
18
18
|
import Head from 'next/head';
|
|
19
19
|
import Accordion from 'react-bootstrap/Accordion';
|
|
20
20
|
import { useAccordionToggle } from 'react-bootstrap/AccordionToggle';
|
|
21
|
-
import { FacebookShareButton, TwitterShareButton, PinterestShareButton, EmailShareButton, FacebookIcon, TwitterIcon, PinterestIcon, EmailIcon } from 'react-share';
|
|
21
|
+
import { FacebookShareButton, TwitterShareButton, LinkedinShareButton, PinterestShareButton, EmailShareButton, FacebookIcon, TwitterIcon, LinkedinIcon, PinterestIcon, EmailIcon } from 'react-share';
|
|
22
22
|
import Form from 'react-bootstrap/Form';
|
|
23
23
|
import FormControl from 'react-bootstrap/FormControl';
|
|
24
24
|
import Nav from 'react-bootstrap/Nav';
|
|
@@ -9480,6 +9480,11 @@ var SocialShare = function SocialShare(props) {
|
|
|
9480
9480
|
{ url: shareUrl, title: shareTitle, via: shareVia },
|
|
9481
9481
|
React__default.createElement(TwitterIcon, { size: size, round: true })
|
|
9482
9482
|
),
|
|
9483
|
+
React__default.createElement(
|
|
9484
|
+
LinkedinShareButton,
|
|
9485
|
+
{ url: shareUrl, title: shareTitle, via: shareVia },
|
|
9486
|
+
React__default.createElement(LinkedinIcon, { size: size, round: true })
|
|
9487
|
+
),
|
|
9483
9488
|
React__default.createElement(
|
|
9484
9489
|
PinterestShareButton,
|
|
9485
9490
|
{ url: shareUrl, media: shareImage, description: shareSummary },
|
|
@@ -10742,7 +10747,7 @@ var FigureComponent = function FigureComponent(_ref) {
|
|
|
10742
10747
|
var screenWidth = window.innerWidth;
|
|
10743
10748
|
if (screenWidth > 1000) {
|
|
10744
10749
|
if (widthP === 'auto') {
|
|
10745
|
-
setimageWidth('30%');
|
|
10750
|
+
if (imgFloat === 'none') setimageWidth('auto');else setimageWidth('30%');
|
|
10746
10751
|
} else {
|
|
10747
10752
|
setimageWidth(widthP + '%');
|
|
10748
10753
|
}
|
|
@@ -10753,12 +10758,12 @@ var FigureComponent = function FigureComponent(_ref) {
|
|
|
10753
10758
|
var screenWidth = window.innerWidth;
|
|
10754
10759
|
if (screenWidth > 1000) {
|
|
10755
10760
|
if (widthP === 'auto') {
|
|
10756
|
-
setimageWidth('30%');
|
|
10761
|
+
if (imgFloat === 'none') setimageWidth('auto');else setimageWidth('30%');
|
|
10757
10762
|
} else {
|
|
10758
10763
|
setimageWidth(widthP + '%');
|
|
10759
10764
|
}
|
|
10760
10765
|
}
|
|
10761
|
-
}, [widthP]);
|
|
10766
|
+
}, [widthP, imgFloat]);
|
|
10762
10767
|
|
|
10763
10768
|
useEffect(function () {
|
|
10764
10769
|
var screenWidth = window.innerWidth;
|
|
@@ -10777,20 +10782,17 @@ var FigureComponent = function FigureComponent(_ref) {
|
|
|
10777
10782
|
'a',
|
|
10778
10783
|
{ href: link, target: blank ? '_blank' : '_self' },
|
|
10779
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 }),
|
|
10780
|
-
caption && React__default.createElement(
|
|
10781
|
-
Figure.Caption,
|
|
10782
|
-
{ style: { width: '100%', maxWidth: '100%' } },
|
|
10783
|
-
caption
|
|
10784
|
-
)
|
|
10785
|
+
caption && React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } })
|
|
10785
10786
|
) : React__default.createElement(
|
|
10786
10787
|
React__default.Fragment,
|
|
10787
10788
|
null,
|
|
10788
10789
|
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
|
-
|
|
10791
|
-
|
|
10792
|
-
|
|
10793
|
-
|
|
10790
|
+
caption && React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } })
|
|
10791
|
+
),
|
|
10792
|
+
React__default.createElement(
|
|
10793
|
+
'style',
|
|
10794
|
+
{ jsx: 'true' },
|
|
10795
|
+
'\n figure-caption {\n font-size: 90%;\n color: #6c757d;\n }\n '
|
|
10794
10796
|
)
|
|
10795
10797
|
);
|
|
10796
10798
|
};
|
|
@@ -10841,7 +10843,7 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
10841
10843
|
Carousel,
|
|
10842
10844
|
{ activeIndex: carouselIndex, onSelect: function onSelect(selectedIndex, e) {
|
|
10843
10845
|
return onChangeSlide(selectedIndex, router);
|
|
10844
|
-
}
|
|
10846
|
+
} },
|
|
10845
10847
|
slides && slides.map(function (slide) {
|
|
10846
10848
|
return React__default.createElement(
|
|
10847
10849
|
Carousel.Item,
|
|
@@ -14400,7 +14402,7 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
14400
14402
|
|
|
14401
14403
|
return React__default.createElement(
|
|
14402
14404
|
'article',
|
|
14403
|
-
{ className: 'sidebar'
|
|
14405
|
+
{ className: 'sidebar' },
|
|
14404
14406
|
React__default.createElement(
|
|
14405
14407
|
'div',
|
|
14406
14408
|
null,
|
|
@@ -14414,7 +14416,7 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
14414
14416
|
React__default.createElement(
|
|
14415
14417
|
'style',
|
|
14416
14418
|
{ jsx: 'true' },
|
|
14417
|
-
'\n .sidebar {\n width: 40%;\n padding: 1rem
|
|
14419
|
+
'\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
14420
|
)
|
|
14419
14421
|
);
|
|
14420
14422
|
};
|
|
@@ -15273,7 +15275,7 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
15273
15275
|
Carousel,
|
|
15274
15276
|
{ activeIndex: carouselIndex, onSelect: function onSelect(selectedIndex, e) {
|
|
15275
15277
|
return onChangeSlide$1(selectedIndex, router);
|
|
15276
|
-
}
|
|
15278
|
+
} },
|
|
15277
15279
|
slides && slides.map(function (slide) {
|
|
15278
15280
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
15279
15281
|
return React__default.createElement(
|