@gem-sdk/components 2.0.0-dev.620 → 2.0.0-dev.622
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/article/setting/configs/ArticleAuthor/uiV2.js +1 -0
- package/dist/cjs/article/setting/configs/ArticleReadMore/settings.js +0 -1
- package/dist/cjs/article/setting/configs/ArticleReadMore/uiV2.js +1 -0
- package/dist/cjs/banner/setting/presets/heroBanner1Col.js +1 -1
- package/dist/cjs/banner/setting/presets/heroBannerContentLeft.js +2 -4
- package/dist/cjs/banner/setting/presets/heroBannerContentRight.js +2 -5
- package/dist/cjs/banner/setting/presets/heroBannerVideo.js +10 -0
- package/dist/cjs/banner/setting/setting.js +9 -6
- package/dist/cjs/banner/setting/uiV2.js +34 -10
- package/dist/cjs/collection/components/collection-banner/components/CollectionBanner.liquid.js +3 -2
- package/dist/cjs/collection/components/collection-description/common/classes.js +1 -1
- package/dist/cjs/collection/components/collection-paginator/common/index.js +1 -2
- package/dist/cjs/collection/components/collection-paginator/common/styles.js +2 -2
- package/dist/cjs/collection/components/collection-paginator/components/CollectionPaginator.liquid.js +3 -3
- package/dist/cjs/collection/setting/collection-banner/configs/settings.js +11 -8
- package/dist/cjs/collection/setting/collection-banner/configs/uiV2.js +3 -3
- package/dist/cjs/collection/setting/collection-description/configs/settings.js +2 -2
- package/dist/cjs/collection/setting/collection-paginator/configs/settings.js +8 -5
- package/dist/cjs/collection/setting/collection-paginator/configs/uiV2.js +28 -3
- package/dist/cjs/collection/setting/collection-toolbar/configs/settings.js +1 -1
- package/dist/esm/article/setting/configs/ArticleAuthor/uiV2.js +1 -0
- package/dist/esm/article/setting/configs/ArticleReadMore/settings.js +0 -1
- package/dist/esm/article/setting/configs/ArticleReadMore/uiV2.js +1 -0
- package/dist/esm/banner/setting/presets/heroBanner1Col.js +1 -1
- package/dist/esm/banner/setting/presets/heroBannerContentLeft.js +2 -4
- package/dist/esm/banner/setting/presets/heroBannerContentRight.js +2 -5
- package/dist/esm/banner/setting/presets/heroBannerVideo.js +10 -0
- package/dist/esm/banner/setting/setting.js +9 -6
- package/dist/esm/banner/setting/uiV2.js +34 -10
- package/dist/esm/collection/components/collection-banner/components/CollectionBanner.liquid.js +3 -2
- package/dist/esm/collection/components/collection-description/common/classes.js +1 -1
- package/dist/esm/collection/components/collection-paginator/common/index.js +1 -2
- package/dist/esm/collection/components/collection-paginator/common/styles.js +2 -2
- package/dist/esm/collection/components/collection-paginator/components/CollectionPaginator.liquid.js +3 -3
- package/dist/esm/collection/setting/collection-banner/configs/settings.js +11 -8
- package/dist/esm/collection/setting/collection-banner/configs/uiV2.js +3 -3
- package/dist/esm/collection/setting/collection-description/configs/settings.js +2 -2
- package/dist/esm/collection/setting/collection-paginator/configs/settings.js +8 -5
- package/dist/esm/collection/setting/collection-paginator/configs/uiV2.js +28 -3
- package/dist/esm/collection/setting/collection-toolbar/configs/settings.js +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +3 -3
|
@@ -51,15 +51,13 @@ const heroBannerContentLeft = {
|
|
|
51
51
|
sizeSetting: {
|
|
52
52
|
desktop: {
|
|
53
53
|
shape: 'original',
|
|
54
|
-
|
|
55
|
-
width: '100%',
|
|
56
|
-
height: '600px'
|
|
54
|
+
width: '100%'
|
|
57
55
|
},
|
|
58
56
|
mobile: {
|
|
59
57
|
shape: 'custom',
|
|
60
58
|
widthHeightLinked: false,
|
|
61
59
|
width: '100%',
|
|
62
|
-
height: '
|
|
60
|
+
height: 'fit-content'
|
|
63
61
|
}
|
|
64
62
|
}
|
|
65
63
|
},
|
|
@@ -60,13 +60,10 @@ const heroBannerContentRight = {
|
|
|
60
60
|
sizeSetting: {
|
|
61
61
|
desktop: {
|
|
62
62
|
shape: 'original',
|
|
63
|
-
|
|
64
|
-
width: '100%',
|
|
65
|
-
height: '600px'
|
|
63
|
+
width: '100%'
|
|
66
64
|
},
|
|
67
65
|
mobile: {
|
|
68
|
-
shape: '
|
|
69
|
-
widthHeightLinked: true,
|
|
66
|
+
shape: 'custom',
|
|
70
67
|
width: '100%'
|
|
71
68
|
}
|
|
72
69
|
}
|
|
@@ -39,6 +39,16 @@ const heroBannerVideo = {
|
|
|
39
39
|
contentWidth: {
|
|
40
40
|
desktop: '1200px'
|
|
41
41
|
},
|
|
42
|
+
sizeSetting: {
|
|
43
|
+
desktop: {
|
|
44
|
+
shape: 'original',
|
|
45
|
+
width: '100%'
|
|
46
|
+
},
|
|
47
|
+
mobile: {
|
|
48
|
+
shape: 'original',
|
|
49
|
+
width: '100%'
|
|
50
|
+
}
|
|
51
|
+
},
|
|
42
52
|
background: {
|
|
43
53
|
desktop: {
|
|
44
54
|
type: 'video',
|
|
@@ -274,16 +274,20 @@ const SettingsV2 = [
|
|
|
274
274
|
id: 'alt',
|
|
275
275
|
label: 'Alt Text',
|
|
276
276
|
type: 'textarea',
|
|
277
|
-
minHeight:
|
|
277
|
+
minHeight: 56,
|
|
278
278
|
autoHeight: true,
|
|
279
|
-
placeholder: 'E.g: Classic white crewneck t-shirt with minimalist design'
|
|
279
|
+
placeholder: 'E.g: Classic white crewneck t-shirt with minimalist design',
|
|
280
|
+
default: undefined
|
|
280
281
|
},
|
|
281
282
|
{
|
|
282
283
|
id: 'title',
|
|
283
284
|
label: 'Image title',
|
|
284
|
-
info: '
|
|
285
|
-
type: '
|
|
286
|
-
|
|
285
|
+
info: 'Show title when hover to image',
|
|
286
|
+
type: 'textarea',
|
|
287
|
+
minHeight: 56,
|
|
288
|
+
autoHeight: true,
|
|
289
|
+
placeholder: 'E.g: White t-shirt',
|
|
290
|
+
default: undefined
|
|
287
291
|
}
|
|
288
292
|
]
|
|
289
293
|
},
|
|
@@ -387,7 +391,6 @@ const SettingsV2 = [
|
|
|
387
391
|
mobile: {
|
|
388
392
|
default: {
|
|
389
393
|
shape: 'custom',
|
|
390
|
-
height: '500px',
|
|
391
394
|
width: '100%'
|
|
392
395
|
}
|
|
393
396
|
}
|
|
@@ -402,22 +402,46 @@ const SettingUIV2 = [
|
|
|
402
402
|
},
|
|
403
403
|
controls: [
|
|
404
404
|
{
|
|
405
|
-
type: '
|
|
406
|
-
setting: {
|
|
407
|
-
id: 'alt'
|
|
408
|
-
},
|
|
405
|
+
type: 'combo',
|
|
409
406
|
label: {
|
|
410
407
|
en: 'Alt text'
|
|
411
|
-
}
|
|
408
|
+
},
|
|
409
|
+
iconName: 'polaris-text-block',
|
|
410
|
+
getValueFromSettingID: 'alt',
|
|
411
|
+
compoDefaultValue: 'Describes the appearance of the image',
|
|
412
|
+
isHideClear: true,
|
|
413
|
+
controls: [
|
|
414
|
+
{
|
|
415
|
+
label: {
|
|
416
|
+
en: 'Content'
|
|
417
|
+
},
|
|
418
|
+
setting: {
|
|
419
|
+
id: 'alt'
|
|
420
|
+
},
|
|
421
|
+
layout: 'vertical'
|
|
422
|
+
}
|
|
423
|
+
]
|
|
412
424
|
},
|
|
413
425
|
{
|
|
414
|
-
type: '
|
|
415
|
-
setting: {
|
|
416
|
-
id: 'title'
|
|
417
|
-
},
|
|
426
|
+
type: 'combo',
|
|
418
427
|
label: {
|
|
419
428
|
en: 'Image title'
|
|
420
|
-
}
|
|
429
|
+
},
|
|
430
|
+
iconName: 'polaris-text-block',
|
|
431
|
+
getValueFromSettingID: 'title',
|
|
432
|
+
compoDefaultValue: 'Title',
|
|
433
|
+
isHideClear: true,
|
|
434
|
+
controls: [
|
|
435
|
+
{
|
|
436
|
+
label: {
|
|
437
|
+
en: 'Content'
|
|
438
|
+
},
|
|
439
|
+
setting: {
|
|
440
|
+
id: 'title'
|
|
441
|
+
},
|
|
442
|
+
layout: 'vertical'
|
|
443
|
+
}
|
|
444
|
+
]
|
|
421
445
|
}
|
|
422
446
|
]
|
|
423
447
|
},
|
package/dist/cjs/collection/components/collection-banner/components/CollectionBanner.liquid.js
CHANGED
|
@@ -61,8 +61,9 @@ const CollectionBanner = ({ builderAttrs, builderProps, setting, style, children
|
|
|
61
61
|
role="banner"
|
|
62
62
|
class="${classContainerBackgoundImage}"
|
|
63
63
|
style="${styleContainerBackgoundImage}"
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
>
|
|
65
|
+
</div>
|
|
66
|
+
<div aria-label="Overlay" role="banner" class="${classOverlayBanner}" style="${styleOverlay}"> </div>
|
|
66
67
|
${core.RenderIf(!!link?.link, `<a
|
|
67
68
|
href="${link?.link}"
|
|
68
69
|
target="${link?.target}"
|
|
@@ -14,7 +14,7 @@ const getDescriptionClasses = ({ advanced })=>{
|
|
|
14
14
|
return composeClasses(core.cls('gp-collection-description', advanced?.cssClass));
|
|
15
15
|
};
|
|
16
16
|
const getShowMoreIconClasses = ()=>{
|
|
17
|
-
return composeClasses(core.cls('gp-show-more-icon gp-ml-1'));
|
|
17
|
+
return composeClasses(core.cls('gp-show-more-icon gp-ml-1 gp-flex gp-items-center'));
|
|
18
18
|
};
|
|
19
19
|
const getShowMoreTextClasses = ()=>{
|
|
20
20
|
return composeClasses(core.cls('gp-show-more-text'));
|
|
@@ -43,9 +43,8 @@ const renderPaginatorLive = ({ setting, builderProps, pageContext })=>{
|
|
|
43
43
|
`;
|
|
44
44
|
};
|
|
45
45
|
const renderPaginatorEditor = ({ setting, builderProps, pageContext })=>{
|
|
46
|
-
const { pageQuantity, typo, activeColor } = setting ?? {};
|
|
46
|
+
const { pageQuantity, typo, normalColor, activeColor } = setting ?? {};
|
|
47
47
|
const paginatorItems = [];
|
|
48
|
-
const normalColor = typo?.attrs?.color;
|
|
49
48
|
const pageCount = parseInt(pageQuantity ?? '0');
|
|
50
49
|
let displayPage = 6;
|
|
51
50
|
if (displayPage > pageCount) {
|
|
@@ -19,8 +19,8 @@ const getCustomStyle = (setting)=>{
|
|
|
19
19
|
return core.removeNullUndefined({
|
|
20
20
|
...appendTypoStyle,
|
|
21
21
|
...core.makeStyle({
|
|
22
|
-
ml: itemSpacing
|
|
23
|
-
mr: itemSpacing
|
|
22
|
+
ml: `${itemSpacing}px`,
|
|
23
|
+
mr: `${itemSpacing}px`,
|
|
24
24
|
bc: core.getGlobalColorCSSProp(normalColor),
|
|
25
25
|
c: core.getGlobalColorCSSProp(normalColor)
|
|
26
26
|
})
|
package/dist/cjs/collection/components/collection-paginator/components/CollectionPaginator.liquid.js
CHANGED
|
@@ -9,14 +9,14 @@ var classes = require('../common/classes.js');
|
|
|
9
9
|
var system = require('@gem-sdk/system');
|
|
10
10
|
|
|
11
11
|
const CollectionPaginator = ({ setting, builderProps, pageContext })=>{
|
|
12
|
-
const { typographyPaginator, activeColor, align, typo } = setting ?? {};
|
|
12
|
+
const { typographyPaginator, activeColor, align, typo, normalColor } = setting ?? {};
|
|
13
13
|
const appendTypoStyle = system.createStyle({
|
|
14
14
|
...core.composeTypographyStyle(typo, typographyPaginator)
|
|
15
15
|
});
|
|
16
16
|
const globalColorStyle = system.createStyle({
|
|
17
|
-
normalColorClass: core.getGlobalColorClass('text',
|
|
17
|
+
normalColorClass: core.getGlobalColorClass('text', normalColor),
|
|
18
18
|
activeColorClass: core.getGlobalColorClass('text', activeColor),
|
|
19
|
-
normalColorStyle: core.getGlobalColorCSSProp(
|
|
19
|
+
normalColorStyle: core.getGlobalColorCSSProp(normalColor) ?? '',
|
|
20
20
|
activeColorStyle: core.getGlobalColorCSSProp(activeColor) ?? ''
|
|
21
21
|
});
|
|
22
22
|
const addedClass = system.createClass({
|
|
@@ -127,7 +127,7 @@ const CollectionBannerSettings = [
|
|
|
127
127
|
options: [
|
|
128
128
|
{
|
|
129
129
|
label: 'Start',
|
|
130
|
-
value: '
|
|
130
|
+
value: 'top',
|
|
131
131
|
tooltip: 'Align top',
|
|
132
132
|
iconName: 'gp-align-top'
|
|
133
133
|
},
|
|
@@ -139,12 +139,12 @@ const CollectionBannerSettings = [
|
|
|
139
139
|
},
|
|
140
140
|
{
|
|
141
141
|
label: 'End',
|
|
142
|
-
value: '
|
|
142
|
+
value: 'bottom',
|
|
143
143
|
tooltip: 'Align bottom',
|
|
144
144
|
iconName: 'gp-align-bottom'
|
|
145
145
|
}
|
|
146
146
|
],
|
|
147
|
-
default: '
|
|
147
|
+
default: 'center'
|
|
148
148
|
},
|
|
149
149
|
{
|
|
150
150
|
id: 'fullWidth',
|
|
@@ -164,16 +164,15 @@ const CollectionBannerSettings = [
|
|
|
164
164
|
},
|
|
165
165
|
{
|
|
166
166
|
id: 'width',
|
|
167
|
-
type: 'input:unit
|
|
167
|
+
type: 'input:unit',
|
|
168
168
|
label: 'Width',
|
|
169
169
|
min: 0,
|
|
170
170
|
units: [
|
|
171
|
-
'px'
|
|
172
|
-
'%'
|
|
171
|
+
'px'
|
|
173
172
|
],
|
|
174
173
|
devices: {
|
|
175
174
|
desktop: {
|
|
176
|
-
default: '
|
|
175
|
+
default: '1200px'
|
|
177
176
|
}
|
|
178
177
|
}
|
|
179
178
|
},
|
|
@@ -184,12 +183,14 @@ const CollectionBannerSettings = [
|
|
|
184
183
|
'px'
|
|
185
184
|
],
|
|
186
185
|
min: 0,
|
|
186
|
+
max: 120,
|
|
187
187
|
label: 'Spacing',
|
|
188
188
|
devices: {
|
|
189
189
|
desktop: {
|
|
190
190
|
default: '32px'
|
|
191
191
|
}
|
|
192
|
-
}
|
|
192
|
+
},
|
|
193
|
+
ignoreMax: true
|
|
193
194
|
}
|
|
194
195
|
]
|
|
195
196
|
},
|
|
@@ -202,6 +203,8 @@ const CollectionBannerSettings = [
|
|
|
202
203
|
id: 'background',
|
|
203
204
|
type: 'background-image',
|
|
204
205
|
ignoreReRender: true,
|
|
206
|
+
isBackground: true,
|
|
207
|
+
isHideClear: true,
|
|
205
208
|
devices: {
|
|
206
209
|
desktop: {
|
|
207
210
|
default: {
|
|
@@ -18,7 +18,7 @@ const SettingUIV2 = [
|
|
|
18
18
|
label: {
|
|
19
19
|
en: 'Column spacing'
|
|
20
20
|
},
|
|
21
|
-
|
|
21
|
+
conditionDisplay: '!!layout.cols && layout.cols.length > 1',
|
|
22
22
|
controls: [
|
|
23
23
|
{
|
|
24
24
|
label: {
|
|
@@ -59,7 +59,7 @@ const SettingUIV2 = [
|
|
|
59
59
|
controls: [
|
|
60
60
|
{
|
|
61
61
|
label: {
|
|
62
|
-
en: '
|
|
62
|
+
en: 'color'
|
|
63
63
|
},
|
|
64
64
|
setting: {
|
|
65
65
|
id: 'overlayColor',
|
|
@@ -68,7 +68,7 @@ const SettingUIV2 = [
|
|
|
68
68
|
},
|
|
69
69
|
{
|
|
70
70
|
label: {
|
|
71
|
-
en: '
|
|
71
|
+
en: 'opacity'
|
|
72
72
|
},
|
|
73
73
|
setting: {
|
|
74
74
|
id: 'overlayOpacity',
|
|
@@ -45,7 +45,7 @@ const CollectionDescriptionSettings = [
|
|
|
45
45
|
disableDecimal: true,
|
|
46
46
|
devices: {
|
|
47
47
|
desktop: {
|
|
48
|
-
default:
|
|
48
|
+
default: 3
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
},
|
|
@@ -116,7 +116,7 @@ const CollectionDescriptionSettings = [
|
|
|
116
116
|
],
|
|
117
117
|
devices: {
|
|
118
118
|
desktop: {
|
|
119
|
-
default: '
|
|
119
|
+
default: 'left'
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
},
|
|
@@ -59,11 +59,14 @@ const CollectionPaginatorSettings = [
|
|
|
59
59
|
{
|
|
60
60
|
id: 'itemSpacing',
|
|
61
61
|
label: 'Item spacing',
|
|
62
|
-
type: 'input:
|
|
62
|
+
type: 'input:slider',
|
|
63
63
|
units: [
|
|
64
64
|
'px'
|
|
65
65
|
],
|
|
66
|
-
default:
|
|
66
|
+
default: 12,
|
|
67
|
+
min: 0,
|
|
68
|
+
max: 40,
|
|
69
|
+
ignoreMax: true
|
|
67
70
|
},
|
|
68
71
|
{
|
|
69
72
|
id: 'text',
|
|
@@ -101,7 +104,7 @@ const CollectionPaginatorSettings = [
|
|
|
101
104
|
default: {
|
|
102
105
|
type: 'paragraph-1',
|
|
103
106
|
attrs: {
|
|
104
|
-
color: '
|
|
107
|
+
color: 'text-1'
|
|
105
108
|
}
|
|
106
109
|
},
|
|
107
110
|
hiddenSetting: {
|
|
@@ -114,13 +117,13 @@ const CollectionPaginatorSettings = [
|
|
|
114
117
|
id: 'normalColor',
|
|
115
118
|
type: 'color-picker-v2',
|
|
116
119
|
label: 'Normal Color',
|
|
117
|
-
default: '
|
|
120
|
+
default: 'text-1'
|
|
118
121
|
},
|
|
119
122
|
{
|
|
120
123
|
id: 'activeColor',
|
|
121
124
|
type: 'color-picker-v2',
|
|
122
125
|
label: 'Active Color',
|
|
123
|
-
default: '
|
|
126
|
+
default: 'text-2'
|
|
124
127
|
}
|
|
125
128
|
]
|
|
126
129
|
},
|
|
@@ -59,7 +59,7 @@ const SettingUIV2 = [
|
|
|
59
59
|
},
|
|
60
60
|
{
|
|
61
61
|
label: {
|
|
62
|
-
en: '
|
|
62
|
+
en: 'Button Content'
|
|
63
63
|
},
|
|
64
64
|
controls: [
|
|
65
65
|
{
|
|
@@ -116,14 +116,39 @@ const SettingUIV2 = [
|
|
|
116
116
|
},
|
|
117
117
|
{
|
|
118
118
|
label: {
|
|
119
|
-
en: '
|
|
119
|
+
en: 'Text style'
|
|
120
120
|
},
|
|
121
121
|
controls: [
|
|
122
122
|
{
|
|
123
123
|
setting: {
|
|
124
124
|
id: 'typo'
|
|
125
125
|
},
|
|
126
|
-
layout: 'vertical'
|
|
126
|
+
layout: 'vertical',
|
|
127
|
+
options: {
|
|
128
|
+
hideLabel: true,
|
|
129
|
+
fullWidth: true,
|
|
130
|
+
updateFields: [
|
|
131
|
+
{
|
|
132
|
+
field: 'attrs.color',
|
|
133
|
+
settingId: 'normalColor'
|
|
134
|
+
}
|
|
135
|
+
]
|
|
136
|
+
},
|
|
137
|
+
controlChangeTrigger: {
|
|
138
|
+
settings: [
|
|
139
|
+
{
|
|
140
|
+
action: {
|
|
141
|
+
controlId: 'normalColor',
|
|
142
|
+
valueFromField: 'attrs.color',
|
|
143
|
+
groupType: 'setting',
|
|
144
|
+
controlType: 'setting'
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
],
|
|
148
|
+
options: {
|
|
149
|
+
noRecordHistory: true
|
|
150
|
+
}
|
|
151
|
+
}
|
|
127
152
|
}
|
|
128
153
|
]
|
|
129
154
|
},
|
|
@@ -49,15 +49,13 @@ const heroBannerContentLeft = {
|
|
|
49
49
|
sizeSetting: {
|
|
50
50
|
desktop: {
|
|
51
51
|
shape: 'original',
|
|
52
|
-
|
|
53
|
-
width: '100%',
|
|
54
|
-
height: '600px'
|
|
52
|
+
width: '100%'
|
|
55
53
|
},
|
|
56
54
|
mobile: {
|
|
57
55
|
shape: 'custom',
|
|
58
56
|
widthHeightLinked: false,
|
|
59
57
|
width: '100%',
|
|
60
|
-
height: '
|
|
58
|
+
height: 'fit-content'
|
|
61
59
|
}
|
|
62
60
|
}
|
|
63
61
|
},
|
|
@@ -58,13 +58,10 @@ const heroBannerContentRight = {
|
|
|
58
58
|
sizeSetting: {
|
|
59
59
|
desktop: {
|
|
60
60
|
shape: 'original',
|
|
61
|
-
|
|
62
|
-
width: '100%',
|
|
63
|
-
height: '600px'
|
|
61
|
+
width: '100%'
|
|
64
62
|
},
|
|
65
63
|
mobile: {
|
|
66
|
-
shape: '
|
|
67
|
-
widthHeightLinked: true,
|
|
64
|
+
shape: 'custom',
|
|
68
65
|
width: '100%'
|
|
69
66
|
}
|
|
70
67
|
}
|
|
@@ -37,6 +37,16 @@ const heroBannerVideo = {
|
|
|
37
37
|
contentWidth: {
|
|
38
38
|
desktop: '1200px'
|
|
39
39
|
},
|
|
40
|
+
sizeSetting: {
|
|
41
|
+
desktop: {
|
|
42
|
+
shape: 'original',
|
|
43
|
+
width: '100%'
|
|
44
|
+
},
|
|
45
|
+
mobile: {
|
|
46
|
+
shape: 'original',
|
|
47
|
+
width: '100%'
|
|
48
|
+
}
|
|
49
|
+
},
|
|
40
50
|
background: {
|
|
41
51
|
desktop: {
|
|
42
52
|
type: 'video',
|
|
@@ -272,16 +272,20 @@ const SettingsV2 = [
|
|
|
272
272
|
id: 'alt',
|
|
273
273
|
label: 'Alt Text',
|
|
274
274
|
type: 'textarea',
|
|
275
|
-
minHeight:
|
|
275
|
+
minHeight: 56,
|
|
276
276
|
autoHeight: true,
|
|
277
|
-
placeholder: 'E.g: Classic white crewneck t-shirt with minimalist design'
|
|
277
|
+
placeholder: 'E.g: Classic white crewneck t-shirt with minimalist design',
|
|
278
|
+
default: undefined
|
|
278
279
|
},
|
|
279
280
|
{
|
|
280
281
|
id: 'title',
|
|
281
282
|
label: 'Image title',
|
|
282
|
-
info: '
|
|
283
|
-
type: '
|
|
284
|
-
|
|
283
|
+
info: 'Show title when hover to image',
|
|
284
|
+
type: 'textarea',
|
|
285
|
+
minHeight: 56,
|
|
286
|
+
autoHeight: true,
|
|
287
|
+
placeholder: 'E.g: White t-shirt',
|
|
288
|
+
default: undefined
|
|
285
289
|
}
|
|
286
290
|
]
|
|
287
291
|
},
|
|
@@ -385,7 +389,6 @@ const SettingsV2 = [
|
|
|
385
389
|
mobile: {
|
|
386
390
|
default: {
|
|
387
391
|
shape: 'custom',
|
|
388
|
-
height: '500px',
|
|
389
392
|
width: '100%'
|
|
390
393
|
}
|
|
391
394
|
}
|
|
@@ -400,22 +400,46 @@ const SettingUIV2 = [
|
|
|
400
400
|
},
|
|
401
401
|
controls: [
|
|
402
402
|
{
|
|
403
|
-
type: '
|
|
404
|
-
setting: {
|
|
405
|
-
id: 'alt'
|
|
406
|
-
},
|
|
403
|
+
type: 'combo',
|
|
407
404
|
label: {
|
|
408
405
|
en: 'Alt text'
|
|
409
|
-
}
|
|
406
|
+
},
|
|
407
|
+
iconName: 'polaris-text-block',
|
|
408
|
+
getValueFromSettingID: 'alt',
|
|
409
|
+
compoDefaultValue: 'Describes the appearance of the image',
|
|
410
|
+
isHideClear: true,
|
|
411
|
+
controls: [
|
|
412
|
+
{
|
|
413
|
+
label: {
|
|
414
|
+
en: 'Content'
|
|
415
|
+
},
|
|
416
|
+
setting: {
|
|
417
|
+
id: 'alt'
|
|
418
|
+
},
|
|
419
|
+
layout: 'vertical'
|
|
420
|
+
}
|
|
421
|
+
]
|
|
410
422
|
},
|
|
411
423
|
{
|
|
412
|
-
type: '
|
|
413
|
-
setting: {
|
|
414
|
-
id: 'title'
|
|
415
|
-
},
|
|
424
|
+
type: 'combo',
|
|
416
425
|
label: {
|
|
417
426
|
en: 'Image title'
|
|
418
|
-
}
|
|
427
|
+
},
|
|
428
|
+
iconName: 'polaris-text-block',
|
|
429
|
+
getValueFromSettingID: 'title',
|
|
430
|
+
compoDefaultValue: 'Title',
|
|
431
|
+
isHideClear: true,
|
|
432
|
+
controls: [
|
|
433
|
+
{
|
|
434
|
+
label: {
|
|
435
|
+
en: 'Content'
|
|
436
|
+
},
|
|
437
|
+
setting: {
|
|
438
|
+
id: 'title'
|
|
439
|
+
},
|
|
440
|
+
layout: 'vertical'
|
|
441
|
+
}
|
|
442
|
+
]
|
|
419
443
|
}
|
|
420
444
|
]
|
|
421
445
|
},
|
package/dist/esm/collection/components/collection-banner/components/CollectionBanner.liquid.js
CHANGED
|
@@ -57,8 +57,9 @@ const CollectionBanner = ({ builderAttrs, builderProps, setting, style, children
|
|
|
57
57
|
role="banner"
|
|
58
58
|
class="${classContainerBackgoundImage}"
|
|
59
59
|
style="${styleContainerBackgoundImage}"
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
>
|
|
61
|
+
</div>
|
|
62
|
+
<div aria-label="Overlay" role="banner" class="${classOverlayBanner}" style="${styleOverlay}"> </div>
|
|
62
63
|
${RenderIf(!!link?.link, `<a
|
|
63
64
|
href="${link?.link}"
|
|
64
65
|
target="${link?.target}"
|
|
@@ -12,7 +12,7 @@ const getDescriptionClasses = ({ advanced })=>{
|
|
|
12
12
|
return composeClasses(cls('gp-collection-description', advanced?.cssClass));
|
|
13
13
|
};
|
|
14
14
|
const getShowMoreIconClasses = ()=>{
|
|
15
|
-
return composeClasses(cls('gp-show-more-icon gp-ml-1'));
|
|
15
|
+
return composeClasses(cls('gp-show-more-icon gp-ml-1 gp-flex gp-items-center'));
|
|
16
16
|
};
|
|
17
17
|
const getShowMoreTextClasses = ()=>{
|
|
18
18
|
return composeClasses(cls('gp-show-more-text'));
|
|
@@ -41,9 +41,8 @@ const renderPaginatorLive = ({ setting, builderProps, pageContext })=>{
|
|
|
41
41
|
`;
|
|
42
42
|
};
|
|
43
43
|
const renderPaginatorEditor = ({ setting, builderProps, pageContext })=>{
|
|
44
|
-
const { pageQuantity, typo, activeColor } = setting ?? {};
|
|
44
|
+
const { pageQuantity, typo, normalColor, activeColor } = setting ?? {};
|
|
45
45
|
const paginatorItems = [];
|
|
46
|
-
const normalColor = typo?.attrs?.color;
|
|
47
46
|
const pageCount = parseInt(pageQuantity ?? '0');
|
|
48
47
|
let displayPage = 6;
|
|
49
48
|
if (displayPage > pageCount) {
|
|
@@ -17,8 +17,8 @@ const getCustomStyle = (setting)=>{
|
|
|
17
17
|
return removeNullUndefined({
|
|
18
18
|
...appendTypoStyle,
|
|
19
19
|
...makeStyle({
|
|
20
|
-
ml: itemSpacing
|
|
21
|
-
mr: itemSpacing
|
|
20
|
+
ml: `${itemSpacing}px`,
|
|
21
|
+
mr: `${itemSpacing}px`,
|
|
22
22
|
bc: getGlobalColorCSSProp(normalColor),
|
|
23
23
|
c: getGlobalColorCSSProp(normalColor)
|
|
24
24
|
})
|
package/dist/esm/collection/components/collection-paginator/components/CollectionPaginator.liquid.js
CHANGED
|
@@ -5,14 +5,14 @@ import { customClass, getPaginatorWrapperClass, getPaginatorClass } from '../com
|
|
|
5
5
|
import { createStyle, createClass, createStateOrContext } from '@gem-sdk/system';
|
|
6
6
|
|
|
7
7
|
const CollectionPaginator = ({ setting, builderProps, pageContext })=>{
|
|
8
|
-
const { typographyPaginator, activeColor, align, typo } = setting ?? {};
|
|
8
|
+
const { typographyPaginator, activeColor, align, typo, normalColor } = setting ?? {};
|
|
9
9
|
const appendTypoStyle = createStyle({
|
|
10
10
|
...composeTypographyStyle(typo, typographyPaginator)
|
|
11
11
|
});
|
|
12
12
|
const globalColorStyle = createStyle({
|
|
13
|
-
normalColorClass: getGlobalColorClass('text',
|
|
13
|
+
normalColorClass: getGlobalColorClass('text', normalColor),
|
|
14
14
|
activeColorClass: getGlobalColorClass('text', activeColor),
|
|
15
|
-
normalColorStyle: getGlobalColorCSSProp(
|
|
15
|
+
normalColorStyle: getGlobalColorCSSProp(normalColor) ?? '',
|
|
16
16
|
activeColorStyle: getGlobalColorCSSProp(activeColor) ?? ''
|
|
17
17
|
});
|
|
18
18
|
const addedClass = createClass({
|
|
@@ -125,7 +125,7 @@ const CollectionBannerSettings = [
|
|
|
125
125
|
options: [
|
|
126
126
|
{
|
|
127
127
|
label: 'Start',
|
|
128
|
-
value: '
|
|
128
|
+
value: 'top',
|
|
129
129
|
tooltip: 'Align top',
|
|
130
130
|
iconName: 'gp-align-top'
|
|
131
131
|
},
|
|
@@ -137,12 +137,12 @@ const CollectionBannerSettings = [
|
|
|
137
137
|
},
|
|
138
138
|
{
|
|
139
139
|
label: 'End',
|
|
140
|
-
value: '
|
|
140
|
+
value: 'bottom',
|
|
141
141
|
tooltip: 'Align bottom',
|
|
142
142
|
iconName: 'gp-align-bottom'
|
|
143
143
|
}
|
|
144
144
|
],
|
|
145
|
-
default: '
|
|
145
|
+
default: 'center'
|
|
146
146
|
},
|
|
147
147
|
{
|
|
148
148
|
id: 'fullWidth',
|
|
@@ -162,16 +162,15 @@ const CollectionBannerSettings = [
|
|
|
162
162
|
},
|
|
163
163
|
{
|
|
164
164
|
id: 'width',
|
|
165
|
-
type: 'input:unit
|
|
165
|
+
type: 'input:unit',
|
|
166
166
|
label: 'Width',
|
|
167
167
|
min: 0,
|
|
168
168
|
units: [
|
|
169
|
-
'px'
|
|
170
|
-
'%'
|
|
169
|
+
'px'
|
|
171
170
|
],
|
|
172
171
|
devices: {
|
|
173
172
|
desktop: {
|
|
174
|
-
default: '
|
|
173
|
+
default: '1200px'
|
|
175
174
|
}
|
|
176
175
|
}
|
|
177
176
|
},
|
|
@@ -182,12 +181,14 @@ const CollectionBannerSettings = [
|
|
|
182
181
|
'px'
|
|
183
182
|
],
|
|
184
183
|
min: 0,
|
|
184
|
+
max: 120,
|
|
185
185
|
label: 'Spacing',
|
|
186
186
|
devices: {
|
|
187
187
|
desktop: {
|
|
188
188
|
default: '32px'
|
|
189
189
|
}
|
|
190
|
-
}
|
|
190
|
+
},
|
|
191
|
+
ignoreMax: true
|
|
191
192
|
}
|
|
192
193
|
]
|
|
193
194
|
},
|
|
@@ -200,6 +201,8 @@ const CollectionBannerSettings = [
|
|
|
200
201
|
id: 'background',
|
|
201
202
|
type: 'background-image',
|
|
202
203
|
ignoreReRender: true,
|
|
204
|
+
isBackground: true,
|
|
205
|
+
isHideClear: true,
|
|
203
206
|
devices: {
|
|
204
207
|
desktop: {
|
|
205
208
|
default: {
|
|
@@ -16,7 +16,7 @@ const SettingUIV2 = [
|
|
|
16
16
|
label: {
|
|
17
17
|
en: 'Column spacing'
|
|
18
18
|
},
|
|
19
|
-
|
|
19
|
+
conditionDisplay: '!!layout.cols && layout.cols.length > 1',
|
|
20
20
|
controls: [
|
|
21
21
|
{
|
|
22
22
|
label: {
|
|
@@ -57,7 +57,7 @@ const SettingUIV2 = [
|
|
|
57
57
|
controls: [
|
|
58
58
|
{
|
|
59
59
|
label: {
|
|
60
|
-
en: '
|
|
60
|
+
en: 'color'
|
|
61
61
|
},
|
|
62
62
|
setting: {
|
|
63
63
|
id: 'overlayColor',
|
|
@@ -66,7 +66,7 @@ const SettingUIV2 = [
|
|
|
66
66
|
},
|
|
67
67
|
{
|
|
68
68
|
label: {
|
|
69
|
-
en: '
|
|
69
|
+
en: 'opacity'
|
|
70
70
|
},
|
|
71
71
|
setting: {
|
|
72
72
|
id: 'overlayOpacity',
|
|
@@ -43,7 +43,7 @@ const CollectionDescriptionSettings = [
|
|
|
43
43
|
disableDecimal: true,
|
|
44
44
|
devices: {
|
|
45
45
|
desktop: {
|
|
46
|
-
default:
|
|
46
|
+
default: 3
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
},
|
|
@@ -114,7 +114,7 @@ const CollectionDescriptionSettings = [
|
|
|
114
114
|
],
|
|
115
115
|
devices: {
|
|
116
116
|
desktop: {
|
|
117
|
-
default: '
|
|
117
|
+
default: 'left'
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
},
|
|
@@ -57,11 +57,14 @@ const CollectionPaginatorSettings = [
|
|
|
57
57
|
{
|
|
58
58
|
id: 'itemSpacing',
|
|
59
59
|
label: 'Item spacing',
|
|
60
|
-
type: 'input:
|
|
60
|
+
type: 'input:slider',
|
|
61
61
|
units: [
|
|
62
62
|
'px'
|
|
63
63
|
],
|
|
64
|
-
default:
|
|
64
|
+
default: 12,
|
|
65
|
+
min: 0,
|
|
66
|
+
max: 40,
|
|
67
|
+
ignoreMax: true
|
|
65
68
|
},
|
|
66
69
|
{
|
|
67
70
|
id: 'text',
|
|
@@ -99,7 +102,7 @@ const CollectionPaginatorSettings = [
|
|
|
99
102
|
default: {
|
|
100
103
|
type: 'paragraph-1',
|
|
101
104
|
attrs: {
|
|
102
|
-
color: '
|
|
105
|
+
color: 'text-1'
|
|
103
106
|
}
|
|
104
107
|
},
|
|
105
108
|
hiddenSetting: {
|
|
@@ -112,13 +115,13 @@ const CollectionPaginatorSettings = [
|
|
|
112
115
|
id: 'normalColor',
|
|
113
116
|
type: 'color-picker-v2',
|
|
114
117
|
label: 'Normal Color',
|
|
115
|
-
default: '
|
|
118
|
+
default: 'text-1'
|
|
116
119
|
},
|
|
117
120
|
{
|
|
118
121
|
id: 'activeColor',
|
|
119
122
|
type: 'color-picker-v2',
|
|
120
123
|
label: 'Active Color',
|
|
121
|
-
default: '
|
|
124
|
+
default: 'text-2'
|
|
122
125
|
}
|
|
123
126
|
]
|
|
124
127
|
},
|
|
@@ -57,7 +57,7 @@ const SettingUIV2 = [
|
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
59
|
label: {
|
|
60
|
-
en: '
|
|
60
|
+
en: 'Button Content'
|
|
61
61
|
},
|
|
62
62
|
controls: [
|
|
63
63
|
{
|
|
@@ -114,14 +114,39 @@ const SettingUIV2 = [
|
|
|
114
114
|
},
|
|
115
115
|
{
|
|
116
116
|
label: {
|
|
117
|
-
en: '
|
|
117
|
+
en: 'Text style'
|
|
118
118
|
},
|
|
119
119
|
controls: [
|
|
120
120
|
{
|
|
121
121
|
setting: {
|
|
122
122
|
id: 'typo'
|
|
123
123
|
},
|
|
124
|
-
layout: 'vertical'
|
|
124
|
+
layout: 'vertical',
|
|
125
|
+
options: {
|
|
126
|
+
hideLabel: true,
|
|
127
|
+
fullWidth: true,
|
|
128
|
+
updateFields: [
|
|
129
|
+
{
|
|
130
|
+
field: 'attrs.color',
|
|
131
|
+
settingId: 'normalColor'
|
|
132
|
+
}
|
|
133
|
+
]
|
|
134
|
+
},
|
|
135
|
+
controlChangeTrigger: {
|
|
136
|
+
settings: [
|
|
137
|
+
{
|
|
138
|
+
action: {
|
|
139
|
+
controlId: 'normalColor',
|
|
140
|
+
valueFromField: 'attrs.color',
|
|
141
|
+
groupType: 'setting',
|
|
142
|
+
controlType: 'setting'
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
],
|
|
146
|
+
options: {
|
|
147
|
+
noRecordHistory: true
|
|
148
|
+
}
|
|
149
|
+
}
|
|
125
150
|
}
|
|
126
151
|
]
|
|
127
152
|
},
|
package/dist/types/index.d.ts
CHANGED
|
@@ -647,7 +647,7 @@ type CollectionPaginatorProps = BasePropsWrap<{
|
|
|
647
647
|
layout?: string;
|
|
648
648
|
buttonShape?: string;
|
|
649
649
|
buttonSizeNumber?: number;
|
|
650
|
-
itemSpacing?: string;
|
|
650
|
+
itemSpacing?: number | string;
|
|
651
651
|
previousText?: string;
|
|
652
652
|
nextText?: string;
|
|
653
653
|
translate?: string;
|
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.622",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -21,11 +21,11 @@
|
|
|
21
21
|
"format": "prettier --write \"./src/**/*.{ts,tsx}\"",
|
|
22
22
|
"relationship": "rollup -c ./scripts/rollup.config.settings.mjs && node ./scripts/get-control-relationship.js && node ./scripts/get-element-relationship.js",
|
|
23
23
|
"update-img-src-3rd": "node ./scripts/update-img-src-3rd.js",
|
|
24
|
-
"scan-
|
|
24
|
+
"scan-and-translate": "node ./scripts/scan-and-translate.js",
|
|
25
25
|
"scan-all-text": "node ./scripts/scan-all-text.js"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@gem-sdk/core": "2.0.0-dev.
|
|
28
|
+
"@gem-sdk/core": "2.0.0-dev.621",
|
|
29
29
|
"@gem-sdk/styles": "2.0.0-dev.571",
|
|
30
30
|
"@gem-sdk/system": "2.0.0-dev.504",
|
|
31
31
|
"@types/react-transition-group": "^4.4.5",
|