@gem-sdk/components 2.0.0-dev.611 → 2.0.0-dev.612
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/banner/components/HeroBannerItem.js +1 -1
- package/dist/cjs/banner/components/HeroBannerItem.liquid.js +2 -2
- package/dist/cjs/banner/components/common/getClasses.js +2 -1
- package/dist/cjs/countdown-timer/setting/configs/uiV2.js +13 -13
- package/dist/esm/banner/components/HeroBannerItem.js +1 -1
- package/dist/esm/banner/components/HeroBannerItem.liquid.js +2 -2
- package/dist/esm/banner/components/common/getClasses.js +2 -1
- package/dist/esm/countdown-timer/setting/configs/uiV2.js +13 -13
- package/package.json +1 -1
|
@@ -52,7 +52,7 @@ const HeroBannerItem = (props)=>{
|
|
|
52
52
|
...getClasses.getAdaptiveClasses()
|
|
53
53
|
});
|
|
54
54
|
const backgroundClasses = system.createClass({
|
|
55
|
-
...getClasses.getBackgroundClasses(hoverEffect)
|
|
55
|
+
...getClasses.getBackgroundClasses(hoverEffect, enableLazyImage)
|
|
56
56
|
});
|
|
57
57
|
const backgroundStyle = system.createStyle({
|
|
58
58
|
...getStyle.getBackgroundStyle(styles, enableParallax, transform),
|
|
@@ -53,11 +53,11 @@ const HeroBannerItem = (props)=>{
|
|
|
53
53
|
...getClasses.getAdaptiveClasses()
|
|
54
54
|
});
|
|
55
55
|
const backgroundClasses = system.createClass({
|
|
56
|
-
...getClasses.getBackgroundClasses(hoverEffect)
|
|
56
|
+
...getClasses.getBackgroundClasses(hoverEffect, enableLazyImage)
|
|
57
57
|
});
|
|
58
58
|
const backgroundStyle = system.createStyle({
|
|
59
59
|
...getStyle.getBackgroundStyle(styles, enableParallax, transform),
|
|
60
|
-
...common.getBackgroundImageHeroBanner(background,
|
|
60
|
+
...common.getBackgroundImageHeroBanner(background, enableLazyImage, isNotLiquid)
|
|
61
61
|
});
|
|
62
62
|
const containBackgroundClasses = system.createClass({
|
|
63
63
|
...getClasses.getContainBackgroundClasses()
|
|
@@ -60,8 +60,9 @@ const getAdaptivePictureClasses = ()=>{
|
|
|
60
60
|
const classList = `gp-w-full`;
|
|
61
61
|
return composeClasses(classList);
|
|
62
62
|
};
|
|
63
|
-
const getBackgroundClasses = (hoverEffect)=>{
|
|
63
|
+
const getBackgroundClasses = (hoverEffect, enableLazyImage)=>{
|
|
64
64
|
let classList = `hero-banner-bg gp-hero-banner-image-background`;
|
|
65
|
+
if (enableLazyImage) classList += ` gp_lazybg`;
|
|
65
66
|
if (hoverEffect) classList += ` gp-duration-[var(--duration)] group-hover/hero:gp-scale-[var(--scale)] gp-transition-transform`;
|
|
66
67
|
return composeClasses(classList);
|
|
67
68
|
};
|
|
@@ -45,15 +45,6 @@ const SettingUIV2 = [
|
|
|
45
45
|
id: 'timerEverygreen'
|
|
46
46
|
},
|
|
47
47
|
layout: 'vertical'
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
conditionDisplay: 'behaviour === "evergreen" && autoHideWhenTimeout === false',
|
|
51
|
-
label: {
|
|
52
|
-
en: 'Loop (refresh after finish)'
|
|
53
|
-
},
|
|
54
|
-
setting: {
|
|
55
|
-
id: 'loopAfterFinish'
|
|
56
|
-
}
|
|
57
48
|
}
|
|
58
49
|
]
|
|
59
50
|
},
|
|
@@ -244,7 +235,7 @@ const SettingUIV2 = [
|
|
|
244
235
|
en: 'Time'
|
|
245
236
|
},
|
|
246
237
|
setting: {
|
|
247
|
-
id: '
|
|
238
|
+
id: 'enableNumberTextStyle'
|
|
248
239
|
},
|
|
249
240
|
options: {
|
|
250
241
|
labelVariant: 'primary',
|
|
@@ -255,7 +246,7 @@ const SettingUIV2 = [
|
|
|
255
246
|
label: {
|
|
256
247
|
en: 'Item style'
|
|
257
248
|
},
|
|
258
|
-
conditionDisplay: '
|
|
249
|
+
conditionDisplay: 'enableNumberTextStyle == true',
|
|
259
250
|
type: 'combo',
|
|
260
251
|
popoverLabel: {
|
|
261
252
|
en: 'Time text style'
|
|
@@ -281,7 +272,7 @@ const SettingUIV2 = [
|
|
|
281
272
|
en: 'Caption'
|
|
282
273
|
},
|
|
283
274
|
setting: {
|
|
284
|
-
id: '
|
|
275
|
+
id: 'enableLabelTextStyle'
|
|
285
276
|
},
|
|
286
277
|
options: {
|
|
287
278
|
labelVariant: 'primary',
|
|
@@ -295,7 +286,7 @@ const SettingUIV2 = [
|
|
|
295
286
|
popoverLabel: {
|
|
296
287
|
en: 'Caption text style'
|
|
297
288
|
},
|
|
298
|
-
conditionDisplay: '
|
|
289
|
+
conditionDisplay: 'enableLabelTextStyle == true',
|
|
299
290
|
type: 'combo',
|
|
300
291
|
iconName: 'polaris-text-title',
|
|
301
292
|
isHideClear: true,
|
|
@@ -437,6 +428,15 @@ const SettingUIV2 = [
|
|
|
437
428
|
id: 'autoHideWhenTimeout'
|
|
438
429
|
}
|
|
439
430
|
},
|
|
431
|
+
{
|
|
432
|
+
conditionDisplay: 'behaviour === "evergreen" && autoHideWhenTimeout === false',
|
|
433
|
+
label: {
|
|
434
|
+
en: 'Loop'
|
|
435
|
+
},
|
|
436
|
+
setting: {
|
|
437
|
+
id: 'loopAfterFinish'
|
|
438
|
+
}
|
|
439
|
+
},
|
|
440
440
|
{
|
|
441
441
|
setting: {
|
|
442
442
|
id: 'redirectUrl'
|
|
@@ -48,7 +48,7 @@ const HeroBannerItem = (props)=>{
|
|
|
48
48
|
...getAdaptiveClasses()
|
|
49
49
|
});
|
|
50
50
|
const backgroundClasses = createClass({
|
|
51
|
-
...getBackgroundClasses(hoverEffect)
|
|
51
|
+
...getBackgroundClasses(hoverEffect, enableLazyImage)
|
|
52
52
|
});
|
|
53
53
|
const backgroundStyle = createStyle({
|
|
54
54
|
...getBackgroundStyle(styles, enableParallax, transform),
|
|
@@ -49,11 +49,11 @@ const HeroBannerItem = (props)=>{
|
|
|
49
49
|
...getAdaptiveClasses()
|
|
50
50
|
});
|
|
51
51
|
const backgroundClasses = createClass({
|
|
52
|
-
...getBackgroundClasses(hoverEffect)
|
|
52
|
+
...getBackgroundClasses(hoverEffect, enableLazyImage)
|
|
53
53
|
});
|
|
54
54
|
const backgroundStyle = createStyle({
|
|
55
55
|
...getBackgroundStyle(styles, enableParallax, transform),
|
|
56
|
-
...getBackgroundImageHeroBanner(background,
|
|
56
|
+
...getBackgroundImageHeroBanner(background, enableLazyImage, isNotLiquid)
|
|
57
57
|
});
|
|
58
58
|
const containBackgroundClasses = createClass({
|
|
59
59
|
...getContainBackgroundClasses()
|
|
@@ -58,8 +58,9 @@ const getAdaptivePictureClasses = ()=>{
|
|
|
58
58
|
const classList = `gp-w-full`;
|
|
59
59
|
return composeClasses(classList);
|
|
60
60
|
};
|
|
61
|
-
const getBackgroundClasses = (hoverEffect)=>{
|
|
61
|
+
const getBackgroundClasses = (hoverEffect, enableLazyImage)=>{
|
|
62
62
|
let classList = `hero-banner-bg gp-hero-banner-image-background`;
|
|
63
|
+
if (enableLazyImage) classList += ` gp_lazybg`;
|
|
63
64
|
if (hoverEffect) classList += ` gp-duration-[var(--duration)] group-hover/hero:gp-scale-[var(--scale)] gp-transition-transform`;
|
|
64
65
|
return composeClasses(classList);
|
|
65
66
|
};
|
|
@@ -43,15 +43,6 @@ const SettingUIV2 = [
|
|
|
43
43
|
id: 'timerEverygreen'
|
|
44
44
|
},
|
|
45
45
|
layout: 'vertical'
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
conditionDisplay: 'behaviour === "evergreen" && autoHideWhenTimeout === false',
|
|
49
|
-
label: {
|
|
50
|
-
en: 'Loop (refresh after finish)'
|
|
51
|
-
},
|
|
52
|
-
setting: {
|
|
53
|
-
id: 'loopAfterFinish'
|
|
54
|
-
}
|
|
55
46
|
}
|
|
56
47
|
]
|
|
57
48
|
},
|
|
@@ -242,7 +233,7 @@ const SettingUIV2 = [
|
|
|
242
233
|
en: 'Time'
|
|
243
234
|
},
|
|
244
235
|
setting: {
|
|
245
|
-
id: '
|
|
236
|
+
id: 'enableNumberTextStyle'
|
|
246
237
|
},
|
|
247
238
|
options: {
|
|
248
239
|
labelVariant: 'primary',
|
|
@@ -253,7 +244,7 @@ const SettingUIV2 = [
|
|
|
253
244
|
label: {
|
|
254
245
|
en: 'Item style'
|
|
255
246
|
},
|
|
256
|
-
conditionDisplay: '
|
|
247
|
+
conditionDisplay: 'enableNumberTextStyle == true',
|
|
257
248
|
type: 'combo',
|
|
258
249
|
popoverLabel: {
|
|
259
250
|
en: 'Time text style'
|
|
@@ -279,7 +270,7 @@ const SettingUIV2 = [
|
|
|
279
270
|
en: 'Caption'
|
|
280
271
|
},
|
|
281
272
|
setting: {
|
|
282
|
-
id: '
|
|
273
|
+
id: 'enableLabelTextStyle'
|
|
283
274
|
},
|
|
284
275
|
options: {
|
|
285
276
|
labelVariant: 'primary',
|
|
@@ -293,7 +284,7 @@ const SettingUIV2 = [
|
|
|
293
284
|
popoverLabel: {
|
|
294
285
|
en: 'Caption text style'
|
|
295
286
|
},
|
|
296
|
-
conditionDisplay: '
|
|
287
|
+
conditionDisplay: 'enableLabelTextStyle == true',
|
|
297
288
|
type: 'combo',
|
|
298
289
|
iconName: 'polaris-text-title',
|
|
299
290
|
isHideClear: true,
|
|
@@ -435,6 +426,15 @@ const SettingUIV2 = [
|
|
|
435
426
|
id: 'autoHideWhenTimeout'
|
|
436
427
|
}
|
|
437
428
|
},
|
|
429
|
+
{
|
|
430
|
+
conditionDisplay: 'behaviour === "evergreen" && autoHideWhenTimeout === false',
|
|
431
|
+
label: {
|
|
432
|
+
en: 'Loop'
|
|
433
|
+
},
|
|
434
|
+
setting: {
|
|
435
|
+
id: 'loopAfterFinish'
|
|
436
|
+
}
|
|
437
|
+
},
|
|
438
438
|
{
|
|
439
439
|
setting: {
|
|
440
440
|
id: 'redirectUrl'
|