@mjhls/mjh-framework 1.0.192 → 1.0.193
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 +14 -9
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +14 -9
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -17242,22 +17242,27 @@ var FigureComponent = function FigureComponent(_ref) {
|
|
|
17242
17242
|
null,
|
|
17243
17243
|
React__default.createElement(
|
|
17244
17244
|
reactBootstrap.Figure,
|
|
17245
|
-
{
|
|
17246
|
-
className: 'd-block',
|
|
17247
|
-
style: { width: imageWidth, maxWidth: '100%', clear: 'both', float: imgFloat, margin: figureMargin },
|
|
17248
|
-
onClick: function onClick() {
|
|
17249
|
-
setOpenImgSrc(urlFor$1(node$$1, client).url());
|
|
17250
|
-
setOpenImg(true);
|
|
17251
|
-
} },
|
|
17245
|
+
{ className: 'd-block', style: { width: imageWidth, maxWidth: '100%', clear: 'both', float: imgFloat, margin: figureMargin } },
|
|
17252
17246
|
link$$1 ? React__default.createElement(
|
|
17253
17247
|
'a',
|
|
17254
|
-
{ target: blank ? '_blank' : '_self' },
|
|
17248
|
+
{ target: blank ? '_blank' : '_self', href: link$$1 },
|
|
17255
17249
|
React__default.createElement(reactBootstrap.Figure.Image, { style: { width: '100%' }, className: 'figure-image', ref: imgElement, onLoad: loadImg, src: urlFor$1(node$$1, client).url(), alt: alt && alt }),
|
|
17256
17250
|
caption && React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } })
|
|
17257
17251
|
) : React__default.createElement(
|
|
17258
17252
|
React__default.Fragment,
|
|
17259
17253
|
null,
|
|
17260
|
-
React__default.createElement(reactBootstrap.Figure.Image, {
|
|
17254
|
+
React__default.createElement(reactBootstrap.Figure.Image, {
|
|
17255
|
+
style: { width: '100%' },
|
|
17256
|
+
className: 'figure-image',
|
|
17257
|
+
ref: imgElement,
|
|
17258
|
+
onLoad: loadImg,
|
|
17259
|
+
src: urlFor$1(node$$1, client).url(),
|
|
17260
|
+
alt: alt && alt,
|
|
17261
|
+
onClick: function onClick() {
|
|
17262
|
+
setOpenImgSrc(urlFor$1(node$$1, client).url());
|
|
17263
|
+
setOpenImg(true);
|
|
17264
|
+
}
|
|
17265
|
+
}),
|
|
17261
17266
|
caption && React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } })
|
|
17262
17267
|
)
|
|
17263
17268
|
),
|