@mjhls/mjh-framework 1.0.111 → 1.0.113
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 +29 -8
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +29 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.es.js
CHANGED
|
@@ -12530,6 +12530,10 @@ var MdMouse = function (props) {
|
|
|
12530
12530
|
return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 24 24"},"child":[{"tag":"path","attr":{"d":"M13 1.07V9h7c0-4.08-3.05-7.44-7-7.93zM4 15c0 4.42 3.58 8 8 8s8-3.58 8-8v-4H4v4zm7-13.93C7.05 1.56 4 4.92 4 9h7V1.07z"}}]})(props);
|
|
12531
12531
|
};
|
|
12532
12532
|
MdMouse.displayName = "MdMouse";
|
|
12533
|
+
var MdPictureAsPdf = function (props) {
|
|
12534
|
+
return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 24 24"},"child":[{"tag":"path","attr":{"d":"M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-8.5 7.5c0 .83-.67 1.5-1.5 1.5H9v2H7.5V7H10c.83 0 1.5.67 1.5 1.5v1zm5 2c0 .83-.67 1.5-1.5 1.5h-2.5V7H15c.83 0 1.5.67 1.5 1.5v3zm4-3H19v1h1.5V11H19v2h-1.5V7h3v1.5zM9 9.5h1v-1H9v1zM4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm10 5.5h1v-3h-1v3z"}}]})(props);
|
|
12535
|
+
};
|
|
12536
|
+
MdPictureAsPdf.displayName = "MdPictureAsPdf";
|
|
12533
12537
|
|
|
12534
12538
|
var NavNormal = function NavNormal(props) {
|
|
12535
12539
|
var logo = props.logo,
|
|
@@ -13805,22 +13809,21 @@ var FigureComponent = function FigureComponent(_ref) {
|
|
|
13805
13809
|
_node$alignment = node$$1.alignment,
|
|
13806
13810
|
alignment = _node$alignment === undefined ? 'center' : _node$alignment;
|
|
13807
13811
|
|
|
13808
|
-
|
|
13809
|
-
var imgWidth = widthP ? widthP + '%' : 'auto';
|
|
13812
|
+
var imgWidth = widthP ? widthP + '%' : '100%';
|
|
13810
13813
|
|
|
13811
13814
|
var figureMargin = void 0;
|
|
13812
13815
|
if (imgFloat === 'none') {
|
|
13813
13816
|
figureMargin = '0 auto 1rem';
|
|
13814
13817
|
}
|
|
13815
13818
|
if (imgFloat === 'left') {
|
|
13816
|
-
figureMargin = '0 1rem 1rem
|
|
13819
|
+
figureMargin = '0 10% 1rem 1rem';
|
|
13817
13820
|
}
|
|
13818
13821
|
if (imgFloat === 'right') {
|
|
13819
|
-
figureMargin = '0
|
|
13822
|
+
figureMargin = '0 1rem 1rem 10%';
|
|
13820
13823
|
}
|
|
13821
13824
|
|
|
13822
13825
|
var loadImg = function loadImg() {
|
|
13823
|
-
setcaptionWidth(imgElement.current.
|
|
13826
|
+
setcaptionWidth(imgElement.current.width);
|
|
13824
13827
|
};
|
|
13825
13828
|
|
|
13826
13829
|
useEffect(function () {
|
|
@@ -13828,14 +13831,13 @@ var FigureComponent = function FigureComponent(_ref) {
|
|
|
13828
13831
|
if (screenWidth > 1000) {
|
|
13829
13832
|
var align = alignment.toLowerCase() === 'center' ? 'none' : alignment.toLowerCase();
|
|
13830
13833
|
setimgFloat(align);
|
|
13831
|
-
loadImg();
|
|
13832
13834
|
}
|
|
13833
13835
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
13834
13836
|
}, []);
|
|
13835
13837
|
|
|
13836
13838
|
return React__default.createElement(
|
|
13837
13839
|
Figure,
|
|
13838
|
-
{ className: 'd-block text-center mb-3', style: { width: imgWidth, clear: 'both',
|
|
13840
|
+
{ className: 'd-block text-center mb-3', style: { width: imgWidth, float: imgFloat, clear: 'both', margin: figureMargin } },
|
|
13839
13841
|
link ? React__default.createElement(
|
|
13840
13842
|
'a',
|
|
13841
13843
|
{ href: link, target: blank ? '_blank' : '_self' },
|
|
@@ -20633,5 +20635,24 @@ var AlphabeticList = function AlphabeticList(_ref) {
|
|
|
20633
20635
|
);
|
|
20634
20636
|
};
|
|
20635
20637
|
|
|
20636
|
-
|
|
20638
|
+
var PdfDownload = function PdfDownload(props) {
|
|
20639
|
+
console.log(props.issueInfo.asset.url);
|
|
20640
|
+
|
|
20641
|
+
return React__default.createElement(
|
|
20642
|
+
'div',
|
|
20643
|
+
{ className: 'pdf-download', style: { textAlign: 'center', padding: '1rem 0', borderTop: '1px solid #eee', marginTop: '1rem' } },
|
|
20644
|
+
React__default.createElement(
|
|
20645
|
+
'a',
|
|
20646
|
+
{ href: props.issueInfo.asset.url, target: '_blank' },
|
|
20647
|
+
React__default.createElement(MdPictureAsPdf, { style: { fontSize: '65px', color: '#ff0000' } }),
|
|
20648
|
+
React__default.createElement(
|
|
20649
|
+
'span',
|
|
20650
|
+
null,
|
|
20651
|
+
'Click to download this publication issue.'
|
|
20652
|
+
)
|
|
20653
|
+
)
|
|
20654
|
+
);
|
|
20655
|
+
};
|
|
20656
|
+
|
|
20657
|
+
export { ContentCard as DeckContent, GridContent$1 as GridContent, Queue as DeckQueue, ThumbnailCard, TaxonomyCard, GroupDeck, YoutubeGroup, QueueDeckExpanded, VideoSeriesListing$1 as VideoSeriesListing, Column1, Column2, Column3, Header, LeftNav, AccordionPanel, SocialShare, PageFilter, NavMagazine, NavNative, NavNormal, NavDvm, TemplateNormal, AD300x250, AD300x250x600, AD728x90, getSerializers$1 as getSerializers, Search, Feature, Breadcrumbs, SetCookie, Hero, AlphabeticList, PdfDownload };
|
|
20637
20658
|
//# sourceMappingURL=index.es.js.map
|