@gem-sdk/components 2.5.9 → 2.5.10
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/dist/cjs/carousel/components/CarouselItem.js +1 -1
- package/dist/cjs/carousel/components/CarouselItem.liquid.js +1 -1
- package/dist/cjs/grid/components/Row.js +4 -3
- package/dist/cjs/grid/components/Row.liquid.js +3 -2
- package/dist/cjs/grid/setting/Row.js +32 -2
- package/dist/cjs/image/components/Image.js +4 -1
- package/dist/cjs/image/components/Image.liquid.js +5 -2
- package/dist/cjs/image/setting/Image.js +9 -0
- package/dist/esm/carousel/components/CarouselItem.js +1 -1
- package/dist/esm/carousel/components/CarouselItem.liquid.js +1 -1
- package/dist/esm/grid/components/Row.js +4 -3
- package/dist/esm/grid/components/Row.liquid.js +3 -2
- package/dist/esm/grid/setting/Row.js +32 -2
- package/dist/esm/image/components/Image.js +5 -2
- package/dist/esm/image/components/Image.liquid.js +6 -3
- package/dist/esm/image/setting/Image.js +9 -0
- package/dist/types/index.d.ts +5 -0
- package/package.json +2 -2
|
@@ -71,7 +71,7 @@ const CarouselItem = ({ children, builderAttrs, styles, advanced, setting, build
|
|
|
71
71
|
onClick: onClickItem,
|
|
72
72
|
"aria-hidden": true,
|
|
73
73
|
children: /*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
74
|
-
className: "gp-w-full",
|
|
74
|
+
className: "gp-w-full gp-h-full",
|
|
75
75
|
style: {
|
|
76
76
|
...itemShadowStyle
|
|
77
77
|
},
|
|
@@ -50,7 +50,7 @@ const Row = ({ className, children, setting, builderAttrs, builderProps, styles,
|
|
|
50
50
|
childHasChildren,
|
|
51
51
|
children
|
|
52
52
|
]);
|
|
53
|
-
const { fullWidth, width, verticalGutter, background, columnGap } = styles ?? {};
|
|
53
|
+
const { fullWidth, width, verticalGutter, background, columnGap, height } = styles ?? {};
|
|
54
54
|
const styleObject = helpers.createStyleObject(width, pageType === 'POST_PURCHASE' && isSection ? {
|
|
55
55
|
desktop: false,
|
|
56
56
|
tablet: false,
|
|
@@ -69,7 +69,8 @@ const Row = ({ className, children, setting, builderAttrs, builderProps, styles,
|
|
|
69
69
|
...isSection ? restStyle : style,
|
|
70
70
|
...core.makeStyleResponsive('cg', verticalGutter),
|
|
71
71
|
...layout ? core.composeGridLayout(layout) : core.makeStyleResponsive('gtc', responsive),
|
|
72
|
-
...core.makeStyleResponsive('w', styleObject.content)
|
|
72
|
+
...core.makeStyleResponsive('w', styleObject.content),
|
|
73
|
+
...core.makeStyleResponsive('h', height)
|
|
73
74
|
};
|
|
74
75
|
if (pageType === 'POST_PURCHASE') {
|
|
75
76
|
result = {
|
|
@@ -123,7 +124,7 @@ const Row = ({ className, children, setting, builderAttrs, builderProps, styles,
|
|
|
123
124
|
"data-id": builderProps?.uidInteraction ?? builderProps?.uid,
|
|
124
125
|
ref: ref,
|
|
125
126
|
style: getStyles(),
|
|
126
|
-
className: core.cls(className, builderProps?.uid, 'gp-mb-0 gp-grid gp-mx-auto gp-max-w-full gp-gap-y-0 gp-transition-colors gp-duration-200 gp-ease-in-out ', {
|
|
127
|
+
className: core.cls(className, builderProps?.uid, 'gp-mb-0 gp-grid gp-mx-auto gp-max-w-full gp-gap-y-0 gp-transition-colors gp-duration-200 gp-ease-in-out gp-grid-rows-[1fr]', {
|
|
127
128
|
'gp-content-visibility-hidden': mode !== 'edit' && isSection && lazy && !inView
|
|
128
129
|
}),
|
|
129
130
|
children: isDisplaySection ? /*#__PURE__*/ jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
@@ -8,7 +8,7 @@ var helpers = require('../../helpers.js');
|
|
|
8
8
|
|
|
9
9
|
const Row = ({ className, children, setting, builderAttrs, builderProps, styles, style, rawChildren, advanced, ...props })=>{
|
|
10
10
|
const { isSection, horizontalAlign, verticalAlign, order, layout, responsive } = setting ?? {};
|
|
11
|
-
const { fullWidth, width, verticalGutter, background } = styles ?? {};
|
|
11
|
+
const { fullWidth, width, verticalGutter, background, height } = styles ?? {};
|
|
12
12
|
const styleObject = helpers$1.createStyleObject(width, fullWidth);
|
|
13
13
|
const [wrapStyle, restStyle] = core.splitStyle([
|
|
14
14
|
'pos',
|
|
@@ -31,12 +31,13 @@ const Row = ({ className, children, setting, builderAttrs, builderProps, styles,
|
|
|
31
31
|
...core.makeStyleResponsive('pc', horizontalAlign),
|
|
32
32
|
...layout ? core.composeGridLayout(layout) : core.makeStyleResponsive('gtc', responsive),
|
|
33
33
|
...core.makeStyleResponsive('w', styleObject.content),
|
|
34
|
+
...core.makeStyleResponsive('h', height),
|
|
34
35
|
...core.getStyleBackgroundByDevice(background, {
|
|
35
36
|
liquid: true
|
|
36
37
|
}),
|
|
37
38
|
...core.getGradientBgrStyleByDevice(background)
|
|
38
39
|
}}"
|
|
39
|
-
class="${core.cls(className, builderProps?.uid, advanced?.cssClass, 'gp-mx-auto gp-mb-0 gp-grid gp-max-w-full gp-gap-y-0 gp-transition-colors gp-duration-200 gp-ease-in-out [&_*]:gp-max-w-full')}"
|
|
40
|
+
class="${core.cls(className, builderProps?.uid, advanced?.cssClass, 'gp-mx-auto gp-mb-0 gp-grid gp-max-w-full gp-gap-y-0 gp-transition-colors gp-duration-200 gp-ease-in-out [&_*]:gp-max-w-full gp-grid-rows-[1fr]')}"
|
|
40
41
|
>
|
|
41
42
|
${core.WrapRenderChildren({
|
|
42
43
|
uid: builderProps?.uid || '',
|
|
@@ -254,6 +254,27 @@ const config = {
|
|
|
254
254
|
}
|
|
255
255
|
}
|
|
256
256
|
},
|
|
257
|
+
{
|
|
258
|
+
id: 'height',
|
|
259
|
+
type: 'segment',
|
|
260
|
+
devices: {
|
|
261
|
+
desktop: {
|
|
262
|
+
default: 'auto'
|
|
263
|
+
}
|
|
264
|
+
},
|
|
265
|
+
options: [
|
|
266
|
+
{
|
|
267
|
+
label: 'Full',
|
|
268
|
+
value: '100%',
|
|
269
|
+
tooltip: 'Stretch to fill <br> vertical space'
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
label: 'Fit',
|
|
273
|
+
value: 'auto',
|
|
274
|
+
tooltip: 'Adjust size <br> based on content'
|
|
275
|
+
}
|
|
276
|
+
]
|
|
277
|
+
},
|
|
257
278
|
{
|
|
258
279
|
id: 'verticalGutter',
|
|
259
280
|
type: 'input:unit-spacing',
|
|
@@ -347,7 +368,6 @@ const config = {
|
|
|
347
368
|
label: {
|
|
348
369
|
en: 'Align'
|
|
349
370
|
},
|
|
350
|
-
condition: `(layout.display !== 'fill' || (layout.display === 'fill' && !!layout.cols && layout.cols.length > 1)) && pageType != "POST_PURCHASE"`,
|
|
351
371
|
controls: [
|
|
352
372
|
{
|
|
353
373
|
type: 'control',
|
|
@@ -357,7 +377,7 @@ const config = {
|
|
|
357
377
|
setting: {
|
|
358
378
|
id: 'verticalAlign'
|
|
359
379
|
},
|
|
360
|
-
condition:
|
|
380
|
+
condition: `((!!layout.cols && layout.cols.length > 1) || (!!layout.cols && layout.cols.length == 1 && height == '100%')) && pageType != "POST_PURCHASE"`
|
|
361
381
|
},
|
|
362
382
|
{
|
|
363
383
|
type: 'control',
|
|
@@ -408,6 +428,16 @@ const config = {
|
|
|
408
428
|
},
|
|
409
429
|
layout: 'horizontal'
|
|
410
430
|
},
|
|
431
|
+
{
|
|
432
|
+
type: 'control',
|
|
433
|
+
setting: {
|
|
434
|
+
id: 'height'
|
|
435
|
+
},
|
|
436
|
+
label: {
|
|
437
|
+
en: 'Height'
|
|
438
|
+
},
|
|
439
|
+
layout: 'horizontal'
|
|
440
|
+
},
|
|
411
441
|
{
|
|
412
442
|
type: 'control',
|
|
413
443
|
label: {
|
|
@@ -21,6 +21,7 @@ const Image = ({ styles, className, setting, builderAttrs, builderProps, style,
|
|
|
21
21
|
};
|
|
22
22
|
const imageWidth = shape ? core.makeStyleResponsive('w', core.getWidthByShapeGlobalSize(shape)) : core.makeStyleResponsive('w', core.makeWidth(styles?.width, styles?.fullWidth));
|
|
23
23
|
const imageHeight = core.makeStyleResponsive('h', core.getHeightByShapeGlobalSize(shape));
|
|
24
|
+
const imageFlexGrowClass = core.getFlexGrowClassByShapeGlobalSize(shape);
|
|
24
25
|
const overwriteDefaultRadius = (cornerRadius)=>{
|
|
25
26
|
const radius = {
|
|
26
27
|
...cornerRadius
|
|
@@ -61,7 +62,9 @@ const Image = ({ styles, className, setting, builderAttrs, builderProps, style,
|
|
|
61
62
|
"data-id": builderProps?.uid,
|
|
62
63
|
onClick: onClick,
|
|
63
64
|
role: "presentation",
|
|
64
|
-
className: core.cls('gp-group/image gp-relative', builderProps?.uid
|
|
65
|
+
className: core.cls('gp-group/image gp-relative', builderProps?.uid, {
|
|
66
|
+
...imageFlexGrowClass
|
|
67
|
+
}),
|
|
65
68
|
style: {
|
|
66
69
|
...style,
|
|
67
70
|
...core.makeStyleResponsive('ta', styles?.align)
|
|
@@ -31,20 +31,23 @@ const Image = ({ styles, className, setting, builderAttrs, builderProps, style,
|
|
|
31
31
|
};
|
|
32
32
|
const imageWidth = core.makeStyleResponsive('w', core.getWidthByShapeGlobalSize(shape));
|
|
33
33
|
const imageHeight = core.makeStyleResponsive('h', core.getHeightByShapeGlobalSize(shape));
|
|
34
|
+
const imageFlexGrowClass = core.getFlexGrowClassByShapeGlobalSize(shape);
|
|
34
35
|
return core.template`<div
|
|
35
36
|
${{
|
|
36
37
|
...builderAttrs
|
|
37
38
|
}}
|
|
38
39
|
data-id="${builderProps?.uid}"
|
|
39
40
|
role="presentation"
|
|
40
|
-
class="${core.cls('gp-group/image', builderProps?.uid, advanced?.cssClass
|
|
41
|
+
class="${core.cls('gp-group/image', builderProps?.uid, advanced?.cssClass, {
|
|
42
|
+
...imageFlexGrowClass
|
|
43
|
+
})}"
|
|
41
44
|
style="${{
|
|
42
45
|
...style,
|
|
43
46
|
...core.makeStyleResponsive('ta', styles?.align)
|
|
44
47
|
}}"
|
|
45
48
|
>
|
|
46
49
|
<${WrapLink}
|
|
47
|
-
class="pointer-events-auto h-full gp-flex"
|
|
50
|
+
class="pointer-events-auto gp-h-full gp-flex"
|
|
48
51
|
${shouldRenderLink ? {
|
|
49
52
|
...urlData,
|
|
50
53
|
title: setting?.title
|
|
@@ -67,7 +67,7 @@ const CarouselItem = ({ children, builderAttrs, styles, advanced, setting, build
|
|
|
67
67
|
onClick: onClickItem,
|
|
68
68
|
"aria-hidden": true,
|
|
69
69
|
children: /*#__PURE__*/ jsx("div", {
|
|
70
|
-
className: "gp-w-full",
|
|
70
|
+
className: "gp-w-full gp-h-full",
|
|
71
71
|
style: {
|
|
72
72
|
...itemShadowStyle
|
|
73
73
|
},
|
|
@@ -46,7 +46,7 @@ const Row = ({ className, children, setting, builderAttrs, builderProps, styles,
|
|
|
46
46
|
childHasChildren,
|
|
47
47
|
children
|
|
48
48
|
]);
|
|
49
|
-
const { fullWidth, width, verticalGutter, background, columnGap } = styles ?? {};
|
|
49
|
+
const { fullWidth, width, verticalGutter, background, columnGap, height } = styles ?? {};
|
|
50
50
|
const styleObject = createStyleObject(width, pageType === 'POST_PURCHASE' && isSection ? {
|
|
51
51
|
desktop: false,
|
|
52
52
|
tablet: false,
|
|
@@ -65,7 +65,8 @@ const Row = ({ className, children, setting, builderAttrs, builderProps, styles,
|
|
|
65
65
|
...isSection ? restStyle : style,
|
|
66
66
|
...makeStyleResponsive('cg', verticalGutter),
|
|
67
67
|
...layout ? composeGridLayout(layout) : makeStyleResponsive('gtc', responsive),
|
|
68
|
-
...makeStyleResponsive('w', styleObject.content)
|
|
68
|
+
...makeStyleResponsive('w', styleObject.content),
|
|
69
|
+
...makeStyleResponsive('h', height)
|
|
69
70
|
};
|
|
70
71
|
if (pageType === 'POST_PURCHASE') {
|
|
71
72
|
result = {
|
|
@@ -119,7 +120,7 @@ const Row = ({ className, children, setting, builderAttrs, builderProps, styles,
|
|
|
119
120
|
"data-id": builderProps?.uidInteraction ?? builderProps?.uid,
|
|
120
121
|
ref: ref,
|
|
121
122
|
style: getStyles(),
|
|
122
|
-
className: cls(className, builderProps?.uid, 'gp-mb-0 gp-grid gp-mx-auto gp-max-w-full gp-gap-y-0 gp-transition-colors gp-duration-200 gp-ease-in-out ', {
|
|
123
|
+
className: cls(className, builderProps?.uid, 'gp-mb-0 gp-grid gp-mx-auto gp-max-w-full gp-gap-y-0 gp-transition-colors gp-duration-200 gp-ease-in-out gp-grid-rows-[1fr]', {
|
|
123
124
|
'gp-content-visibility-hidden': mode !== 'edit' && isSection && lazy && !inView
|
|
124
125
|
}),
|
|
125
126
|
children: isDisplaySection ? /*#__PURE__*/ jsx(Fragment, {
|
|
@@ -4,7 +4,7 @@ import { getSettingPreloadData } from '../../helpers.js';
|
|
|
4
4
|
|
|
5
5
|
const Row = ({ className, children, setting, builderAttrs, builderProps, styles, style, rawChildren, advanced, ...props })=>{
|
|
6
6
|
const { isSection, horizontalAlign, verticalAlign, order, layout, responsive } = setting ?? {};
|
|
7
|
-
const { fullWidth, width, verticalGutter, background } = styles ?? {};
|
|
7
|
+
const { fullWidth, width, verticalGutter, background, height } = styles ?? {};
|
|
8
8
|
const styleObject = createStyleObject(width, fullWidth);
|
|
9
9
|
const [wrapStyle, restStyle] = splitStyle([
|
|
10
10
|
'pos',
|
|
@@ -27,12 +27,13 @@ const Row = ({ className, children, setting, builderAttrs, builderProps, styles,
|
|
|
27
27
|
...makeStyleResponsive('pc', horizontalAlign),
|
|
28
28
|
...layout ? composeGridLayout(layout) : makeStyleResponsive('gtc', responsive),
|
|
29
29
|
...makeStyleResponsive('w', styleObject.content),
|
|
30
|
+
...makeStyleResponsive('h', height),
|
|
30
31
|
...getStyleBackgroundByDevice(background, {
|
|
31
32
|
liquid: true
|
|
32
33
|
}),
|
|
33
34
|
...getGradientBgrStyleByDevice(background)
|
|
34
35
|
}}"
|
|
35
|
-
class="${cls(className, builderProps?.uid, advanced?.cssClass, 'gp-mx-auto gp-mb-0 gp-grid gp-max-w-full gp-gap-y-0 gp-transition-colors gp-duration-200 gp-ease-in-out [&_*]:gp-max-w-full')}"
|
|
36
|
+
class="${cls(className, builderProps?.uid, advanced?.cssClass, 'gp-mx-auto gp-mb-0 gp-grid gp-max-w-full gp-gap-y-0 gp-transition-colors gp-duration-200 gp-ease-in-out [&_*]:gp-max-w-full gp-grid-rows-[1fr]')}"
|
|
36
37
|
>
|
|
37
38
|
${WrapRenderChildren({
|
|
38
39
|
uid: builderProps?.uid || '',
|
|
@@ -250,6 +250,27 @@ const config = {
|
|
|
250
250
|
}
|
|
251
251
|
}
|
|
252
252
|
},
|
|
253
|
+
{
|
|
254
|
+
id: 'height',
|
|
255
|
+
type: 'segment',
|
|
256
|
+
devices: {
|
|
257
|
+
desktop: {
|
|
258
|
+
default: 'auto'
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
options: [
|
|
262
|
+
{
|
|
263
|
+
label: 'Full',
|
|
264
|
+
value: '100%',
|
|
265
|
+
tooltip: 'Stretch to fill <br> vertical space'
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
label: 'Fit',
|
|
269
|
+
value: 'auto',
|
|
270
|
+
tooltip: 'Adjust size <br> based on content'
|
|
271
|
+
}
|
|
272
|
+
]
|
|
273
|
+
},
|
|
253
274
|
{
|
|
254
275
|
id: 'verticalGutter',
|
|
255
276
|
type: 'input:unit-spacing',
|
|
@@ -343,7 +364,6 @@ const config = {
|
|
|
343
364
|
label: {
|
|
344
365
|
en: 'Align'
|
|
345
366
|
},
|
|
346
|
-
condition: `(layout.display !== 'fill' || (layout.display === 'fill' && !!layout.cols && layout.cols.length > 1)) && pageType != "POST_PURCHASE"`,
|
|
347
367
|
controls: [
|
|
348
368
|
{
|
|
349
369
|
type: 'control',
|
|
@@ -353,7 +373,7 @@ const config = {
|
|
|
353
373
|
setting: {
|
|
354
374
|
id: 'verticalAlign'
|
|
355
375
|
},
|
|
356
|
-
condition:
|
|
376
|
+
condition: `((!!layout.cols && layout.cols.length > 1) || (!!layout.cols && layout.cols.length == 1 && height == '100%')) && pageType != "POST_PURCHASE"`
|
|
357
377
|
},
|
|
358
378
|
{
|
|
359
379
|
type: 'control',
|
|
@@ -404,6 +424,16 @@ const config = {
|
|
|
404
424
|
},
|
|
405
425
|
layout: 'horizontal'
|
|
406
426
|
},
|
|
427
|
+
{
|
|
428
|
+
type: 'control',
|
|
429
|
+
setting: {
|
|
430
|
+
id: 'height'
|
|
431
|
+
},
|
|
432
|
+
label: {
|
|
433
|
+
en: 'Height'
|
|
434
|
+
},
|
|
435
|
+
layout: 'horizontal'
|
|
436
|
+
},
|
|
407
437
|
{
|
|
408
438
|
type: 'control',
|
|
409
439
|
label: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { makeStyleResponsive, getWidthByShapeGlobalSize, makeWidth, getHeightByShapeGlobalSize, cls, getStyleShadowState, handleConvertClassColor, getBorderStyle, getBorderRadiusStyle, getStyleShadow, getAspectRatioGlobalSize, getGlobalColorStateClass, getGlobalColorStateStyle, makeStyleState, getCornerCSSFromGlobal } from '@gem-sdk/core';
|
|
2
|
+
import { makeStyleResponsive, getWidthByShapeGlobalSize, makeWidth, getHeightByShapeGlobalSize, getFlexGrowClassByShapeGlobalSize, cls, getStyleShadowState, handleConvertClassColor, getBorderStyle, getBorderRadiusStyle, getStyleShadow, getAspectRatioGlobalSize, getGlobalColorStateClass, getGlobalColorStateStyle, makeStyleState, getCornerCSSFromGlobal } from '@gem-sdk/core';
|
|
3
3
|
import Link from '../../link/components/Link.js';
|
|
4
4
|
import AdaptiveImage from './AdaptiveImage.js';
|
|
5
5
|
import NextImage from './NextImage.js';
|
|
@@ -17,6 +17,7 @@ const Image = ({ styles, className, setting, builderAttrs, builderProps, style,
|
|
|
17
17
|
};
|
|
18
18
|
const imageWidth = shape ? makeStyleResponsive('w', getWidthByShapeGlobalSize(shape)) : makeStyleResponsive('w', makeWidth(styles?.width, styles?.fullWidth));
|
|
19
19
|
const imageHeight = makeStyleResponsive('h', getHeightByShapeGlobalSize(shape));
|
|
20
|
+
const imageFlexGrowClass = getFlexGrowClassByShapeGlobalSize(shape);
|
|
20
21
|
const overwriteDefaultRadius = (cornerRadius)=>{
|
|
21
22
|
const radius = {
|
|
22
23
|
...cornerRadius
|
|
@@ -57,7 +58,9 @@ const Image = ({ styles, className, setting, builderAttrs, builderProps, style,
|
|
|
57
58
|
"data-id": builderProps?.uid,
|
|
58
59
|
onClick: onClick,
|
|
59
60
|
role: "presentation",
|
|
60
|
-
className: cls('gp-group/image gp-relative', builderProps?.uid
|
|
61
|
+
className: cls('gp-group/image gp-relative', builderProps?.uid, {
|
|
62
|
+
...imageFlexGrowClass
|
|
63
|
+
}),
|
|
61
64
|
style: {
|
|
62
65
|
...style,
|
|
63
66
|
...makeStyleResponsive('ta', styles?.align)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { makeStyleResponsive, getWidthByShapeGlobalSize, getHeightByShapeGlobalSize, template, cls, getStyleShadowState, handleConvertClassColor, getBorderStyle, getBorderRadiusStyle, getStyleShadow, getAspectRatioGlobalSize, getCornerCSSFromGlobal } from '@gem-sdk/core';
|
|
1
|
+
import { makeStyleResponsive, getWidthByShapeGlobalSize, getHeightByShapeGlobalSize, getFlexGrowClassByShapeGlobalSize, template, cls, getStyleShadowState, handleConvertClassColor, getBorderStyle, getBorderRadiusStyle, getStyleShadow, getAspectRatioGlobalSize, getCornerCSSFromGlobal } from '@gem-sdk/core';
|
|
2
2
|
import AdaptiveImage from './AdaptiveImage.liquid.js';
|
|
3
3
|
import NextImage from './NextImage.liquid.js';
|
|
4
4
|
import { getLinkDataConfigs } from '../../helpers.js';
|
|
@@ -27,20 +27,23 @@ const Image = ({ styles, className, setting, builderAttrs, builderProps, style,
|
|
|
27
27
|
};
|
|
28
28
|
const imageWidth = makeStyleResponsive('w', getWidthByShapeGlobalSize(shape));
|
|
29
29
|
const imageHeight = makeStyleResponsive('h', getHeightByShapeGlobalSize(shape));
|
|
30
|
+
const imageFlexGrowClass = getFlexGrowClassByShapeGlobalSize(shape);
|
|
30
31
|
return template`<div
|
|
31
32
|
${{
|
|
32
33
|
...builderAttrs
|
|
33
34
|
}}
|
|
34
35
|
data-id="${builderProps?.uid}"
|
|
35
36
|
role="presentation"
|
|
36
|
-
class="${cls('gp-group/image', builderProps?.uid, advanced?.cssClass
|
|
37
|
+
class="${cls('gp-group/image', builderProps?.uid, advanced?.cssClass, {
|
|
38
|
+
...imageFlexGrowClass
|
|
39
|
+
})}"
|
|
37
40
|
style="${{
|
|
38
41
|
...style,
|
|
39
42
|
...makeStyleResponsive('ta', styles?.align)
|
|
40
43
|
}}"
|
|
41
44
|
>
|
|
42
45
|
<${WrapLink}
|
|
43
|
-
class="pointer-events-auto h-full gp-flex"
|
|
46
|
+
class="pointer-events-auto gp-h-full gp-flex"
|
|
44
47
|
${shouldRenderLink ? {
|
|
45
48
|
...urlData,
|
|
46
49
|
title: setting?.title
|
package/dist/types/index.d.ts
CHANGED
|
@@ -547,6 +547,7 @@ type RowProps$1 = BaseProps<{
|
|
|
547
547
|
}, {
|
|
548
548
|
fullWidth?: ObjectDevices<boolean>;
|
|
549
549
|
width?: ObjectDevices<string>;
|
|
550
|
+
height?: ObjectDevices<'auto' | '100%'>;
|
|
550
551
|
verticalGutter?: ObjectDevices<string>;
|
|
551
552
|
background?: ObjectDevices<Background>;
|
|
552
553
|
preloadBgImage?: boolean;
|
|
@@ -5535,6 +5536,7 @@ type RowProps = BaseProps<{
|
|
|
5535
5536
|
}, {
|
|
5536
5537
|
fullWidth?: ObjectDevices<boolean>;
|
|
5537
5538
|
width?: ObjectDevices<string>;
|
|
5539
|
+
height?: ObjectDevices<'auto' | '100%'>;
|
|
5538
5540
|
verticalGutter?: ObjectDevices<string>;
|
|
5539
5541
|
background?: ObjectDevices<Background>;
|
|
5540
5542
|
preloadBgImage?: boolean;
|
|
@@ -5680,6 +5682,7 @@ declare const Product: ({ children, setting, styles, style, builderProps, rawChi
|
|
|
5680
5682
|
}, {
|
|
5681
5683
|
fullWidth?: Partial<Record<_gem_sdk_core.NameDevices, boolean>> | undefined;
|
|
5682
5684
|
width?: Partial<Record<_gem_sdk_core.NameDevices, string>> | undefined;
|
|
5685
|
+
height?: Partial<Record<_gem_sdk_core.NameDevices, "auto" | "100%">> | undefined;
|
|
5683
5686
|
verticalGutter?: Partial<Record<_gem_sdk_core.NameDevices, string>> | undefined;
|
|
5684
5687
|
background?: Partial<Record<_gem_sdk_core.NameDevices, _gem_sdk_core.Background>> | undefined;
|
|
5685
5688
|
preloadBgImage?: boolean | undefined;
|
|
@@ -6478,6 +6481,7 @@ declare const HeroBanner: ({ builderAttrs, builderProps, setting, styles, style,
|
|
|
6478
6481
|
} & Pick<{
|
|
6479
6482
|
fullWidth?: Partial<Record<NameDevices, boolean>> | undefined;
|
|
6480
6483
|
width?: Partial<Record<NameDevices, string>> | undefined;
|
|
6484
|
+
height?: Partial<Record<NameDevices, "auto" | "100%">> | undefined;
|
|
6481
6485
|
verticalGutter?: Partial<Record<NameDevices, string>> | undefined;
|
|
6482
6486
|
background?: Partial<Record<NameDevices, Background>> | undefined;
|
|
6483
6487
|
preloadBgImage?: boolean | undefined;
|
|
@@ -6721,6 +6725,7 @@ declare const CollectionBanner: ({ builderAttrs, builderProps, setting, style, c
|
|
|
6721
6725
|
}, "layout" | "verticalAlign" | "horizontalAlign"> & Pick<{
|
|
6722
6726
|
fullWidth?: Partial<Record<_gem_sdk_core.NameDevices, boolean>> | undefined;
|
|
6723
6727
|
width?: Partial<Record<_gem_sdk_core.NameDevices, string>> | undefined;
|
|
6728
|
+
height?: Partial<Record<_gem_sdk_core.NameDevices, "auto" | "100%">> | undefined;
|
|
6724
6729
|
verticalGutter?: Partial<Record<_gem_sdk_core.NameDevices, string>> | undefined;
|
|
6725
6730
|
background?: Partial<Record<_gem_sdk_core.NameDevices, _gem_sdk_core.Background>> | undefined;
|
|
6726
6731
|
preloadBgImage?: boolean | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/components",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.10",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"format": "prettier --write \"./src/**/*.{ts,tsx}\""
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@gem-sdk/core": "2.5.
|
|
24
|
+
"@gem-sdk/core": "2.5.10",
|
|
25
25
|
"@gem-sdk/styles": "2.4.8",
|
|
26
26
|
"@types/react-transition-group": "^4.4.5"
|
|
27
27
|
},
|