diy-template-components 0.2.35 → 0.2.36
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 +51 -43
- package/build/index.es.js.map +1 -1
- package/build/index.js +51 -43
- package/build/index.js.map +1 -1
- package/package.json +1 -1
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,34 @@ 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
|
+
let {
|
|
1525
|
+
refSetter,
|
|
1526
|
+
className
|
|
1527
|
+
} = props;
|
|
1528
|
+
if (isCustomWebsite) {
|
|
1529
|
+
const NextImage = require('next/image').default;
|
|
1530
|
+
return /*#__PURE__*/React.createElement(NextImage, _extends({
|
|
1531
|
+
src: src,
|
|
1532
|
+
layout: 'fill',
|
|
1533
|
+
ref: refSetter,
|
|
1534
|
+
className: className
|
|
1535
|
+
}, props));
|
|
1536
|
+
} else {
|
|
1537
|
+
return /*#__PURE__*/React.createElement("img", {
|
|
1538
|
+
ref: refSetter,
|
|
1539
|
+
className: className,
|
|
1540
|
+
src: src
|
|
1541
|
+
});
|
|
1542
|
+
}
|
|
1543
|
+
};
|
|
1544
|
+
|
|
1511
1545
|
function Footer({
|
|
1512
1546
|
data
|
|
1513
1547
|
}) {
|
|
@@ -1520,10 +1554,12 @@ function Footer({
|
|
|
1520
1554
|
className: classes.upperContainer
|
|
1521
1555
|
}, /*#__PURE__*/React.createElement("div", {
|
|
1522
1556
|
className: classes.upperContainerItem1
|
|
1523
|
-
}, /*#__PURE__*/React.createElement("
|
|
1557
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
1558
|
+
className: classes.upperContainerItem1Img
|
|
1559
|
+
}, /*#__PURE__*/React.createElement(NextImageRenderer, {
|
|
1524
1560
|
src: data?.logo?.metadata?.url,
|
|
1525
1561
|
ref: data?.logo?.refSetter
|
|
1526
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
1562
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
1527
1563
|
className: classes.upperContainerItem2
|
|
1528
1564
|
}, data?.address?.metadata.value && data?.address?.metadata.value !== '<br>' ? /*#__PURE__*/React.createElement("p", {
|
|
1529
1565
|
className: classes.addressContainer
|
|
@@ -2267,34 +2303,6 @@ function Carousel({
|
|
|
2267
2303
|
})));
|
|
2268
2304
|
}
|
|
2269
2305
|
|
|
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
2306
|
function Section$4({
|
|
2299
2307
|
nodeData
|
|
2300
2308
|
}) {
|