@gem-sdk/components 2.0.0-dev.621 → 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 +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/uiV2.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/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 +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/uiV2.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/types/index.d.ts +1 -1
- package/package.json +2 -2
|
@@ -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
|
@@ -63,7 +63,7 @@ const CollectionBanner = ({ builderAttrs, builderProps, setting, style, children
|
|
|
63
63
|
style="${styleContainerBackgoundImage}"
|
|
64
64
|
>
|
|
65
65
|
</div>
|
|
66
|
-
<div aria-label="Overlay" role="banner" class="${classOverlayBanner}" style="${styleOverlay}"
|
|
66
|
+
<div aria-label="Overlay" role="banner" class="${classOverlayBanner}" style="${styleOverlay}"> </div>
|
|
67
67
|
${core.RenderIf(!!link?.link, `<a
|
|
68
68
|
href="${link?.link}"
|
|
69
69
|
target="${link?.target}"
|
|
@@ -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({
|
|
@@ -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',
|
|
@@ -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
|
@@ -59,7 +59,7 @@ const CollectionBanner = ({ builderAttrs, builderProps, setting, style, children
|
|
|
59
59
|
style="${styleContainerBackgoundImage}"
|
|
60
60
|
>
|
|
61
61
|
</div>
|
|
62
|
-
<div aria-label="Overlay" role="banner" class="${classOverlayBanner}" style="${styleOverlay}"
|
|
62
|
+
<div aria-label="Overlay" role="banner" class="${classOverlayBanner}" style="${styleOverlay}"> </div>
|
|
63
63
|
${RenderIf(!!link?.link, `<a
|
|
64
64
|
href="${link?.link}"
|
|
65
65
|
target="${link?.target}"
|
|
@@ -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({
|
|
@@ -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',
|
|
@@ -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,7 +21,7 @@
|
|
|
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": {
|