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.js CHANGED
@@ -2,15 +2,15 @@
2
2
 
3
3
 
4
4
 
5
- function ___$insertStyle(css) {
6
- if (!css || !window) {
7
- return;
8
- }
9
- const style = document.createElement('style');
10
- style.setAttribute('type', 'text/css');
11
- style.innerHTML = css;
12
- document.head.appendChild(style);
13
- return css;
5
+ function ___$insertStyle(css) {
6
+ if (!css || typeof window === 'undefined') {
7
+ return;
8
+ }
9
+ const style = document.createElement('style');
10
+ style.setAttribute('type', 'text/css');
11
+ style.innerHTML = css;
12
+ document.head.appendChild(style);
13
+ return css;
14
14
  }
15
15
 
16
16
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -113,7 +113,7 @@ const useSectionStyles$a = createUseStyles(theme => ({
113
113
  cursor: 'default',
114
114
  position: 'relative',
115
115
  height: '55px',
116
- width: 'inherit'
116
+ width: '100%'
117
117
  },
118
118
  optionsContainer: {
119
119
  display: 'flex',
@@ -163,7 +163,10 @@ const useSectionStyles$a = createUseStyles(theme => ({
163
163
  imageDivImageNext: {
164
164
  objectFit: ({
165
165
  isCustomWebsite
166
- } = {}) => isCustomWebsite ? 'contain' : ''
166
+ } = {}) => isCustomWebsite ? 'contain' : '',
167
+ objectPosition: ({
168
+ isCustomWebsite
169
+ } = {}) => isCustomWebsite ? 'left' : ''
167
170
  },
168
171
  imageAnchorMobile: {
169
172
  pointerEvents: 'auto',