diy-template-components 0.2.35 → 0.2.37
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/build/index.es.js +58 -43
- package/build/index.es.js.map +1 -1
- package/build/index.js +58 -43
- package/build/index.js.map +1 -1
- package/package.json +2 -2
package/build/index.es.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
function ___$insertStyle(css) {
|
|
2
|
-
if (!css ||
|
|
3
|
-
return;
|
|
4
|
-
}
|
|
5
|
-
const style = document.createElement('style');
|
|
6
|
-
style.setAttribute('type', 'text/css');
|
|
7
|
-
style.innerHTML = css;
|
|
8
|
-
document.head.appendChild(style);
|
|
9
|
-
return css;
|
|
1
|
+
function ___$insertStyle(css) {
|
|
2
|
+
if (!css || typeof window === 'undefined') {
|
|
3
|
+
return;
|
|
4
|
+
}
|
|
5
|
+
const style = document.createElement('style');
|
|
6
|
+
style.setAttribute('type', 'text/css');
|
|
7
|
+
style.innerHTML = css;
|
|
8
|
+
document.head.appendChild(style);
|
|
9
|
+
return css;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
import React, { createContext, useContext, forwardRef, useRef, useEffect, useState, useMemo, useLayoutEffect, Suspense, memo, lazy, Fragment } from 'react';
|
|
@@ -1371,10 +1371,16 @@ const useSectionStyles$9 = createUseStyles(theme => ({
|
|
|
1371
1371
|
upperContainerItem1: {
|
|
1372
1372
|
width: '33%',
|
|
1373
1373
|
display: 'flex',
|
|
1374
|
-
justifyContent: 'flex-start'
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1374
|
+
justifyContent: 'flex-start'
|
|
1375
|
+
|
|
1376
|
+
// '& img': { maxHeight: '55px' }
|
|
1377
|
+
},
|
|
1378
|
+
|
|
1379
|
+
upperContainerItem1Img: {
|
|
1380
|
+
maxHeight: '55px',
|
|
1381
|
+
paddingBottom: '84px',
|
|
1382
|
+
position: 'relative',
|
|
1383
|
+
width: '33%'
|
|
1378
1384
|
},
|
|
1379
1385
|
upperContainerItem2: {
|
|
1380
1386
|
width: '33%'
|
|
@@ -1508,6 +1514,41 @@ const useSectionStyles$9 = createUseStyles(theme => ({
|
|
|
1508
1514
|
}
|
|
1509
1515
|
}));
|
|
1510
1516
|
|
|
1517
|
+
const NextImageRenderer = ({
|
|
1518
|
+
src,
|
|
1519
|
+
...props
|
|
1520
|
+
}) => {
|
|
1521
|
+
const {
|
|
1522
|
+
isCustomWebsite
|
|
1523
|
+
} = useContext(PageContext);
|
|
1524
|
+
const imageLoader = ({
|
|
1525
|
+
src,
|
|
1526
|
+
quality
|
|
1527
|
+
}) => {
|
|
1528
|
+
return `${process.env.NEXT_PUBLIC_ENV_ASSET_PREFIX}/_next/image?url=${src}&q=${quality || 75}`;
|
|
1529
|
+
};
|
|
1530
|
+
let {
|
|
1531
|
+
refSetter,
|
|
1532
|
+
className
|
|
1533
|
+
} = props;
|
|
1534
|
+
if (isCustomWebsite) {
|
|
1535
|
+
const NextImage = require('next/image').default;
|
|
1536
|
+
return /*#__PURE__*/React.createElement(NextImage, _extends({
|
|
1537
|
+
loader: imageLoader,
|
|
1538
|
+
src: src,
|
|
1539
|
+
layout: 'fill',
|
|
1540
|
+
ref: refSetter,
|
|
1541
|
+
className: className
|
|
1542
|
+
}, props));
|
|
1543
|
+
} else {
|
|
1544
|
+
return /*#__PURE__*/React.createElement("img", {
|
|
1545
|
+
ref: refSetter,
|
|
1546
|
+
className: className,
|
|
1547
|
+
src: src
|
|
1548
|
+
});
|
|
1549
|
+
}
|
|
1550
|
+
};
|
|
1551
|
+
|
|
1511
1552
|
function Footer({
|
|
1512
1553
|
data
|
|
1513
1554
|
}) {
|
|
@@ -1520,10 +1561,12 @@ function Footer({
|
|
|
1520
1561
|
className: classes.upperContainer
|
|
1521
1562
|
}, /*#__PURE__*/React.createElement("div", {
|
|
1522
1563
|
className: classes.upperContainerItem1
|
|
1523
|
-
}, /*#__PURE__*/React.createElement("
|
|
1564
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
1565
|
+
className: classes.upperContainerItem1Img
|
|
1566
|
+
}, /*#__PURE__*/React.createElement(NextImageRenderer, {
|
|
1524
1567
|
src: data?.logo?.metadata?.url,
|
|
1525
1568
|
ref: data?.logo?.refSetter
|
|
1526
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
1569
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
1527
1570
|
className: classes.upperContainerItem2
|
|
1528
1571
|
}, data?.address?.metadata.value && data?.address?.metadata.value !== '<br>' ? /*#__PURE__*/React.createElement("p", {
|
|
1529
1572
|
className: classes.addressContainer
|
|
@@ -2267,34 +2310,6 @@ function Carousel({
|
|
|
2267
2310
|
})));
|
|
2268
2311
|
}
|
|
2269
2312
|
|
|
2270
|
-
const NextImageRenderer = ({
|
|
2271
|
-
src,
|
|
2272
|
-
...props
|
|
2273
|
-
}) => {
|
|
2274
|
-
const {
|
|
2275
|
-
isCustomWebsite
|
|
2276
|
-
} = useContext(PageContext);
|
|
2277
|
-
let {
|
|
2278
|
-
refSetter,
|
|
2279
|
-
className
|
|
2280
|
-
} = props;
|
|
2281
|
-
if (isCustomWebsite) {
|
|
2282
|
-
const NextImage = require('next/image').default;
|
|
2283
|
-
return /*#__PURE__*/React.createElement(NextImage, _extends({
|
|
2284
|
-
src: src,
|
|
2285
|
-
layout: 'fill',
|
|
2286
|
-
ref: refSetter,
|
|
2287
|
-
className: className
|
|
2288
|
-
}, props));
|
|
2289
|
-
} else {
|
|
2290
|
-
return /*#__PURE__*/React.createElement("img", {
|
|
2291
|
-
ref: refSetter,
|
|
2292
|
-
className: className,
|
|
2293
|
-
src: src
|
|
2294
|
-
});
|
|
2295
|
-
}
|
|
2296
|
-
};
|
|
2297
|
-
|
|
2298
2313
|
function Section$4({
|
|
2299
2314
|
nodeData
|
|
2300
2315
|
}) {
|