@gem-sdk/components 2.0.0-dev.595 → 2.0.0-dev.598
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 +3 -3
- package/dist/cjs/banner/components/HeroBannerItem.liquid.js +2 -2
- package/dist/cjs/button/components/common/styles.js +20 -3
- package/dist/cjs/countdown-timer/components/Countdown.js +0 -1
- package/dist/cjs/countdown-timer/components/common/getStyle.js +1 -1
- package/dist/cjs/countdown-timer/setting/configs/settings.js +14 -20
- package/dist/cjs/countdown-timer/setting/configs/uiV2.js +30 -17
- package/dist/cjs/image/components/NextImage.liquid.js +1 -0
- package/dist/cjs/image/setting/configs/settings.js +2 -2
- package/dist/cjs/image/setting/configs/uiV2.js +2 -0
- package/dist/cjs/image-comparison/components/common/helpers.js +2 -1
- package/dist/cjs/image-comparison/components/hooks/useCompareImage.js +5 -3
- package/dist/cjs/image-comparison/setting/configs/settings.js +8 -7
- package/dist/cjs/image-comparison/setting/configs/uiV2.js +42 -41
- package/dist/cjs/product/components/ProductButton/common/styles.js +6 -3
- package/dist/cjs/product/components/ProductButton/components/PriceLayout.liquid.js +2 -2
- package/dist/cjs/product/setting/product-view-more/configs/settings.js +2 -2
- package/dist/cjs/product/setting/product-view-more/configs/uiV2.js +2 -32
- package/dist/cjs/third-party/components/Releasit.js +0 -1
- package/dist/cjs/third-party/components/Releasit.liquid.js +0 -1
- package/dist/cjs/third-party/configs/BoldProductOptions.js +1 -1
- package/dist/esm/banner/components/HeroBannerItem.js +3 -3
- package/dist/esm/banner/components/HeroBannerItem.liquid.js +2 -2
- package/dist/esm/button/components/common/styles.js +21 -4
- package/dist/esm/countdown-timer/components/Countdown.js +0 -1
- package/dist/esm/countdown-timer/components/common/getStyle.js +2 -2
- package/dist/esm/countdown-timer/setting/configs/settings.js +14 -20
- package/dist/esm/countdown-timer/setting/configs/uiV2.js +30 -17
- package/dist/esm/image/components/NextImage.liquid.js +1 -0
- package/dist/esm/image/setting/configs/settings.js +2 -2
- package/dist/esm/image/setting/configs/uiV2.js +2 -0
- package/dist/esm/image-comparison/components/common/helpers.js +2 -1
- package/dist/esm/image-comparison/components/hooks/useCompareImage.js +5 -3
- package/dist/esm/image-comparison/setting/configs/settings.js +8 -7
- package/dist/esm/image-comparison/setting/configs/uiV2.js +42 -41
- package/dist/esm/product/components/ProductButton/common/styles.js +6 -3
- package/dist/esm/product/components/ProductButton/components/PriceLayout.liquid.js +2 -2
- package/dist/esm/product/setting/product-view-more/configs/settings.js +2 -2
- package/dist/esm/product/setting/product-view-more/configs/uiV2.js +2 -32
- package/dist/esm/third-party/components/Releasit.js +0 -1
- package/dist/esm/third-party/components/Releasit.liquid.js +0 -1
- package/dist/esm/third-party/configs/BoldProductOptions.js +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +2 -2
|
@@ -254,64 +254,59 @@ const SettingUIV2 = [
|
|
|
254
254
|
},
|
|
255
255
|
{
|
|
256
256
|
label: {
|
|
257
|
-
en: '
|
|
257
|
+
en: 'Background'
|
|
258
258
|
},
|
|
259
|
+
conditionDisplay: `enableLabel === true`,
|
|
259
260
|
setting: {
|
|
260
|
-
id: '
|
|
261
|
-
}
|
|
262
|
-
conditionDisplay: `enableLabel === true && direction === 'horizontal'`
|
|
261
|
+
id: 'labelBackgroundColor'
|
|
262
|
+
}
|
|
263
263
|
},
|
|
264
264
|
{
|
|
265
265
|
label: {
|
|
266
|
-
en: '
|
|
266
|
+
en: 'Border'
|
|
267
267
|
},
|
|
268
|
+
conditionDisplay: `enableLabel === true`,
|
|
268
269
|
setting: {
|
|
269
|
-
id: '
|
|
270
|
+
id: 'labelBorder'
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
label: {
|
|
275
|
+
en: 'Corner'
|
|
270
276
|
},
|
|
271
|
-
conditionDisplay: `enableLabel === true
|
|
277
|
+
conditionDisplay: `enableLabel === true`,
|
|
278
|
+
setting: {
|
|
279
|
+
id: 'labelRounded'
|
|
280
|
+
}
|
|
272
281
|
},
|
|
273
282
|
{
|
|
274
283
|
label: {
|
|
275
|
-
en: '
|
|
284
|
+
en: 'Shadow'
|
|
276
285
|
},
|
|
277
286
|
conditionDisplay: `enableLabel === true`,
|
|
278
287
|
setting: {
|
|
279
|
-
id: '
|
|
288
|
+
id: 'labelShadow'
|
|
280
289
|
}
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
controls: [
|
|
286
|
-
{
|
|
287
|
-
label: {
|
|
288
|
-
en: 'Border'
|
|
289
|
-
},
|
|
290
|
-
conditionDisplay: `enableLabel === true`,
|
|
291
|
-
setting: {
|
|
292
|
-
id: 'labelBorder'
|
|
293
|
-
}
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
label: {
|
|
293
|
+
en: 'Position'
|
|
294
294
|
},
|
|
295
|
-
{
|
|
296
|
-
|
|
297
|
-
en: 'Corner'
|
|
298
|
-
},
|
|
299
|
-
conditionDisplay: `enableLabel === true`,
|
|
300
|
-
setting: {
|
|
301
|
-
id: 'labelRounded'
|
|
302
|
-
}
|
|
295
|
+
setting: {
|
|
296
|
+
id: 'labelPositionHoz'
|
|
303
297
|
},
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
|
|
298
|
+
conditionDisplay: `enableLabel === true && direction === 'horizontal'`
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
label: {
|
|
302
|
+
en: 'Position'
|
|
303
|
+
},
|
|
304
|
+
setting: {
|
|
305
|
+
id: 'labelPositionVer'
|
|
306
|
+
},
|
|
307
|
+
conditionDisplay: `enableLabel === true && direction === 'vertical'`
|
|
308
|
+
}
|
|
309
|
+
]
|
|
315
310
|
},
|
|
316
311
|
{
|
|
317
312
|
label: {
|
|
@@ -450,6 +445,9 @@ const SettingUIV2 = [
|
|
|
450
445
|
type: 'combo',
|
|
451
446
|
iconName: 'polaris-text-title',
|
|
452
447
|
isHideClear: true,
|
|
448
|
+
popoverLabel: {
|
|
449
|
+
en: 'SEO'
|
|
450
|
+
},
|
|
453
451
|
controls: [
|
|
454
452
|
{
|
|
455
453
|
label: {
|
|
@@ -476,6 +474,9 @@ const SettingUIV2 = [
|
|
|
476
474
|
type: 'combo',
|
|
477
475
|
iconName: 'polaris-text-title',
|
|
478
476
|
isHideClear: true,
|
|
477
|
+
popoverLabel: {
|
|
478
|
+
en: 'SEO'
|
|
479
|
+
},
|
|
479
480
|
controls: [
|
|
480
481
|
{
|
|
481
482
|
label: {
|
|
@@ -50,13 +50,16 @@ const getSoldOutButtonStyles = (styles)=>{
|
|
|
50
50
|
if (oosBackgroundV2) {
|
|
51
51
|
buttonSoldOutStyles.backgroundColorV2 = {
|
|
52
52
|
desktop: {
|
|
53
|
-
normal: oosBackgroundV2?.desktop?.normal
|
|
53
|
+
normal: oosBackgroundV2?.desktop?.normal,
|
|
54
|
+
hover: buttonSoldOutStyles.backgroundColorV2?.desktop?.hover
|
|
54
55
|
},
|
|
55
56
|
tablet: {
|
|
56
|
-
normal: oosBackgroundV2?.tablet?.normal
|
|
57
|
+
normal: oosBackgroundV2?.tablet?.normal,
|
|
58
|
+
hover: buttonSoldOutStyles.backgroundColorV2?.tablet?.hover
|
|
57
59
|
},
|
|
58
60
|
mobile: {
|
|
59
|
-
normal: oosBackgroundV2?.mobile?.normal
|
|
61
|
+
normal: oosBackgroundV2?.mobile?.normal,
|
|
62
|
+
hover: buttonSoldOutStyles.backgroundColorV2?.mobile?.hover
|
|
60
63
|
}
|
|
61
64
|
};
|
|
62
65
|
}
|
|
@@ -9,10 +9,10 @@ const PriceLayout = ({ components, separator, showPrice, showSeparator })=>{
|
|
|
9
9
|
}), BlankSpace());
|
|
10
10
|
return template`
|
|
11
11
|
${separatorComponent}
|
|
12
|
-
${showPrice
|
|
12
|
+
${showPrice ? components.map((component, index)=>template`
|
|
13
13
|
${component()}
|
|
14
14
|
${index < components.length - 1 ? BlankSpace() : ''}
|
|
15
|
-
`).join('')}
|
|
15
|
+
`).join('') : ''}
|
|
16
16
|
`;
|
|
17
17
|
};
|
|
18
18
|
|
|
@@ -44,7 +44,7 @@ const ProductViewMoreSettings = [
|
|
|
44
44
|
tooltip: 'Align right'
|
|
45
45
|
}
|
|
46
46
|
],
|
|
47
|
-
default: '
|
|
47
|
+
default: 'right'
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
50
|
id: 'shouldClearSpace',
|
|
@@ -403,7 +403,7 @@ const ProductViewMoreSettings = [
|
|
|
403
403
|
default: {
|
|
404
404
|
type: 'paragraph-1',
|
|
405
405
|
attrs: {
|
|
406
|
-
color: 'text-
|
|
406
|
+
color: 'text-3'
|
|
407
407
|
}
|
|
408
408
|
},
|
|
409
409
|
hiddenSetting: {
|
|
@@ -24,29 +24,14 @@ const SettingUIV2 = [
|
|
|
24
24
|
field: 'width'
|
|
25
25
|
},
|
|
26
26
|
displayOptions: [
|
|
27
|
-
{
|
|
28
|
-
label: 'Fit content',
|
|
29
|
-
value: 'Auto',
|
|
30
|
-
showValue: true
|
|
31
|
-
},
|
|
32
27
|
{
|
|
33
28
|
label: 'Full',
|
|
34
29
|
value: '100%',
|
|
35
30
|
showValue: true
|
|
36
31
|
},
|
|
37
32
|
{
|
|
38
|
-
label: '
|
|
39
|
-
value: '
|
|
40
|
-
showValue: true
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
label: 'Medium',
|
|
44
|
-
value: '116px',
|
|
45
|
-
showValue: true
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
label: 'Large',
|
|
49
|
-
value: '132px',
|
|
33
|
+
label: 'Fit content',
|
|
34
|
+
value: 'Auto',
|
|
50
35
|
showValue: true
|
|
51
36
|
}
|
|
52
37
|
]
|
|
@@ -76,21 +61,6 @@ const SettingUIV2 = [
|
|
|
76
61
|
label: 'Fit content',
|
|
77
62
|
value: 'Auto',
|
|
78
63
|
showValue: true
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
label: 'Small',
|
|
82
|
-
value: '28px',
|
|
83
|
-
showValue: true
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
label: 'Medium',
|
|
87
|
-
value: '36px',
|
|
88
|
-
showValue: true
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
label: 'Large',
|
|
92
|
-
value: '44px',
|
|
93
|
-
showValue: true
|
|
94
64
|
}
|
|
95
65
|
]
|
|
96
66
|
},
|
|
@@ -3,7 +3,6 @@ import { template, makeStyleResponsive } from '@gem-sdk/core';
|
|
|
3
3
|
|
|
4
4
|
const Releasit = ({ setting, advanced })=>{
|
|
5
5
|
const { align, version, appBlockId } = setting ?? {};
|
|
6
|
-
console.log('version', version);
|
|
7
6
|
return version === 'v2' ? getLiquidForAppBlock(appBlockId, align, `${advanced?.cssClass ?? ''}!gp-block`) : template`
|
|
8
7
|
<div
|
|
9
8
|
class="${advanced?.cssClass}"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var BoldProductOptionsConfig = {
|
|
2
2
|
id: 'bold-product-options',
|
|
3
3
|
label: 'SC Product Options',
|
|
4
|
-
logoUrl: 'https://cdn.shopify.com/app-store/listing_images/9a0bf1159f79c6ab0660ec422f350445/icon/CP2Uwo_GuYIDEAE=.png
|
|
4
|
+
logoUrl: 'https://cdn.shopify.com/app-store/listing_images/9a0bf1159f79c6ab0660ec422f350445/icon/CP2Uwo_GuYIDEAE=.png',
|
|
5
5
|
tag: 'BoldProductOptions'
|
|
6
6
|
};
|
|
7
7
|
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1357,7 +1357,7 @@ type CountdownProps = BaseProps<{
|
|
|
1357
1357
|
roundedState?: StateProp<CornerRadius>;
|
|
1358
1358
|
verticalGap?: string;
|
|
1359
1359
|
horizontalGap?: string;
|
|
1360
|
-
itemPadding?:
|
|
1360
|
+
itemPadding?: PaddingType$1;
|
|
1361
1361
|
}> & {
|
|
1362
1362
|
pageContext?: PageContext;
|
|
1363
1363
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/components",
|
|
3
|
-
"version": "2.0.0-dev.
|
|
3
|
+
"version": "2.0.0-dev.598",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"update-img-src-3rd": "node ./scripts/update-img-src-3rd.js"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@gem-sdk/core": "2.0.0-dev.
|
|
26
|
+
"@gem-sdk/core": "2.0.0-dev.596",
|
|
27
27
|
"@gem-sdk/styles": "2.0.0-dev.571",
|
|
28
28
|
"@gem-sdk/system": "2.0.0-dev.504",
|
|
29
29
|
"@types/react-transition-group": "^4.4.5"
|