diy-template-components 0.3.5 → 0.3.7
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 +14 -11
- package/build/index.es.js.map +1 -1
- package/build/index.js +14 -11
- 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';
|
|
@@ -98,7 +98,7 @@ const useSectionStyles$a = createUseStyles(theme => ({
|
|
|
98
98
|
cursor: 'default',
|
|
99
99
|
position: 'relative',
|
|
100
100
|
height: '55px',
|
|
101
|
-
width: '
|
|
101
|
+
width: '100%'
|
|
102
102
|
},
|
|
103
103
|
optionsContainer: {
|
|
104
104
|
display: 'flex',
|
|
@@ -148,7 +148,10 @@ const useSectionStyles$a = createUseStyles(theme => ({
|
|
|
148
148
|
imageDivImageNext: {
|
|
149
149
|
objectFit: ({
|
|
150
150
|
isCustomWebsite
|
|
151
|
-
} = {}) => isCustomWebsite ? 'contain' : ''
|
|
151
|
+
} = {}) => isCustomWebsite ? 'contain' : '',
|
|
152
|
+
objectPosition: ({
|
|
153
|
+
isCustomWebsite
|
|
154
|
+
} = {}) => isCustomWebsite ? 'left' : ''
|
|
152
155
|
},
|
|
153
156
|
imageAnchorMobile: {
|
|
154
157
|
pointerEvents: 'auto',
|