@gem-sdk/components 2.0.0-dev.414 → 2.0.0-dev.416
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/button/components/Button.liquid.js +1 -1
- package/dist/cjs/button/components/common/styles.js +3 -3
- package/dist/cjs/form/setting/submit-button/configs/settings.js +108 -4
- package/dist/cjs/form/setting/submit-button/configs/uiV2.js +2 -15
- package/dist/cjs/post-purchase/product/settings/product-image/setting-v2.js +3 -1
- package/dist/cjs/post-purchase/product/settings/product-image/uiV2.js +25 -20
- package/dist/cjs/product/components/ProductQuantity/index.js +2 -2
- package/dist/cjs/product/setting/product-image-v2/configs/setting-v2/index.js +12 -10
- package/dist/cjs/product/setting/product-image-v2/configs/uiV2.js +26 -15
- package/dist/esm/button/components/Button.liquid.js +1 -1
- package/dist/esm/button/components/common/styles.js +3 -3
- package/dist/esm/form/setting/submit-button/configs/settings.js +108 -4
- package/dist/esm/form/setting/submit-button/configs/uiV2.js +2 -15
- package/dist/esm/post-purchase/product/settings/product-image/setting-v2.js +3 -1
- package/dist/esm/post-purchase/product/settings/product-image/uiV2.js +25 -20
- package/dist/esm/product/components/ProductQuantity/index.js +2 -2
- package/dist/esm/product/setting/product-image-v2/configs/setting-v2/index.js +12 -10
- package/dist/esm/product/setting/product-image-v2/configs/uiV2.js +26 -15
- package/package.json +2 -2
|
@@ -26,8 +26,8 @@ const getButtonIconStyles = (styles, settings)=>{
|
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
28
|
const isEnableShadowStateForDevice = (deviceStyles)=>({
|
|
29
|
-
normal: deviceStyles?.normal?.
|
|
30
|
-
hover: deviceStyles?.hover?.
|
|
29
|
+
normal: deviceStyles?.normal?.enable,
|
|
30
|
+
hover: deviceStyles?.hover?.enable
|
|
31
31
|
});
|
|
32
32
|
const getShadowStyles = (styles)=>{
|
|
33
33
|
const { boxShadowBtnV2 } = styles || {};
|
|
@@ -59,7 +59,7 @@ const getTypoStyles = (styles)=>{
|
|
|
59
59
|
...core.getStyleShadow({
|
|
60
60
|
styleAppliedFor: 'text-shadow',
|
|
61
61
|
value: styles?.typo?.custom?.textShadow,
|
|
62
|
-
isEnableShadow: styles?.typo?.custom?.textShadow?.type !== 'none'
|
|
62
|
+
isEnableShadow: styles?.typo?.custom?.textShadow?.type !== 'none' && styles?.typo?.custom?.hasShadowText
|
|
63
63
|
})
|
|
64
64
|
};
|
|
65
65
|
};
|
|
@@ -47,7 +47,7 @@ const SubmitButtonSettings = [
|
|
|
47
47
|
id: 'label',
|
|
48
48
|
label: 'Text',
|
|
49
49
|
type: 'input',
|
|
50
|
-
default: '
|
|
50
|
+
default: 'Submit'
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
53
|
id: 'translate',
|
|
@@ -157,6 +157,13 @@ const SubmitButtonSettings = [
|
|
|
157
157
|
bbrr: '0px',
|
|
158
158
|
btlr: '0px',
|
|
159
159
|
radiusType: 'none'
|
|
160
|
+
},
|
|
161
|
+
hover: {
|
|
162
|
+
btrr: '0px',
|
|
163
|
+
bblr: '0px',
|
|
164
|
+
bbrr: '0px',
|
|
165
|
+
btlr: '0px',
|
|
166
|
+
radiusType: 'none'
|
|
160
167
|
}
|
|
161
168
|
}
|
|
162
169
|
}
|
|
@@ -170,6 +177,13 @@ const SubmitButtonSettings = [
|
|
|
170
177
|
bbrr: '8px',
|
|
171
178
|
btlr: '8px',
|
|
172
179
|
radiusType: 'rounded'
|
|
180
|
+
},
|
|
181
|
+
hover: {
|
|
182
|
+
btrr: '8px',
|
|
183
|
+
bblr: '8px',
|
|
184
|
+
bbrr: '8px',
|
|
185
|
+
btlr: '8px',
|
|
186
|
+
radiusType: 'rounded'
|
|
173
187
|
}
|
|
174
188
|
}
|
|
175
189
|
}
|
|
@@ -181,7 +195,24 @@ const SubmitButtonSettings = [
|
|
|
181
195
|
devices: {
|
|
182
196
|
desktop: {
|
|
183
197
|
default: {
|
|
184
|
-
normal: {
|
|
198
|
+
normal: {
|
|
199
|
+
type: 'shadow-1',
|
|
200
|
+
distance: '4px',
|
|
201
|
+
blur: '4px',
|
|
202
|
+
spread: '0px',
|
|
203
|
+
color: '#121212',
|
|
204
|
+
angle: 45,
|
|
205
|
+
enable: false
|
|
206
|
+
},
|
|
207
|
+
hover: {
|
|
208
|
+
type: 'shadow-1',
|
|
209
|
+
distance: '4px',
|
|
210
|
+
blur: '4px',
|
|
211
|
+
spread: '0px',
|
|
212
|
+
color: '#121212',
|
|
213
|
+
angle: 45,
|
|
214
|
+
enable: false
|
|
215
|
+
}
|
|
185
216
|
}
|
|
186
217
|
}
|
|
187
218
|
},
|
|
@@ -194,7 +225,61 @@ const SubmitButtonSettings = [
|
|
|
194
225
|
blur: '4px',
|
|
195
226
|
spread: '0px',
|
|
196
227
|
color: '#121212',
|
|
197
|
-
angle: 45
|
|
228
|
+
angle: 45,
|
|
229
|
+
enable: true
|
|
230
|
+
},
|
|
231
|
+
hover: {
|
|
232
|
+
type: 'shadow-1',
|
|
233
|
+
distance: '4px',
|
|
234
|
+
blur: '4px',
|
|
235
|
+
spread: '0px',
|
|
236
|
+
color: '#121212',
|
|
237
|
+
angle: 45,
|
|
238
|
+
enable: true
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
tablet: {
|
|
243
|
+
default: {
|
|
244
|
+
normal: {
|
|
245
|
+
type: 'shadow-1',
|
|
246
|
+
distance: '4px',
|
|
247
|
+
blur: '4px',
|
|
248
|
+
spread: '0px',
|
|
249
|
+
color: '#121212',
|
|
250
|
+
angle: 45,
|
|
251
|
+
enable: true
|
|
252
|
+
},
|
|
253
|
+
hover: {
|
|
254
|
+
type: 'shadow-1',
|
|
255
|
+
distance: '4px',
|
|
256
|
+
blur: '4px',
|
|
257
|
+
spread: '0px',
|
|
258
|
+
color: '#121212',
|
|
259
|
+
angle: 45,
|
|
260
|
+
enable: true
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
mobile: {
|
|
265
|
+
default: {
|
|
266
|
+
normal: {
|
|
267
|
+
type: 'shadow-1',
|
|
268
|
+
distance: '4px',
|
|
269
|
+
blur: '4px',
|
|
270
|
+
spread: '0px',
|
|
271
|
+
color: '#121212',
|
|
272
|
+
angle: 45,
|
|
273
|
+
enable: true
|
|
274
|
+
},
|
|
275
|
+
hover: {
|
|
276
|
+
type: 'shadow-1',
|
|
277
|
+
distance: '4px',
|
|
278
|
+
blur: '4px',
|
|
279
|
+
spread: '0px',
|
|
280
|
+
color: '#121212',
|
|
281
|
+
angle: 45,
|
|
282
|
+
enable: true
|
|
198
283
|
}
|
|
199
284
|
}
|
|
200
285
|
}
|
|
@@ -258,6 +343,25 @@ const SubmitButtonSettings = [
|
|
|
258
343
|
normal: true
|
|
259
344
|
}
|
|
260
345
|
},
|
|
346
|
+
{
|
|
347
|
+
id: 'textColorHover',
|
|
348
|
+
type: 'color-picker-v2',
|
|
349
|
+
devices: {
|
|
350
|
+
desktop: {
|
|
351
|
+
default: {
|
|
352
|
+
hover: 'text-3'
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
},
|
|
356
|
+
compoDefaultValue: {
|
|
357
|
+
desktop: {
|
|
358
|
+
default: {
|
|
359
|
+
hover: 'text-3'
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
},
|
|
363
|
+
enableGradient: true
|
|
364
|
+
},
|
|
261
365
|
{
|
|
262
366
|
id: 'hasBoxShadowBtn',
|
|
263
367
|
type: 'toggle',
|
|
@@ -463,7 +567,7 @@ const SubmitButtonSettings = [
|
|
|
463
567
|
devices: {
|
|
464
568
|
desktop: {
|
|
465
569
|
default: {
|
|
466
|
-
width: '
|
|
570
|
+
width: 'Auto',
|
|
467
571
|
height: 'Auto',
|
|
468
572
|
padding: {
|
|
469
573
|
type: 'medium',
|
|
@@ -1,19 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const SettingUIV2 = [
|
|
4
|
-
{
|
|
5
|
-
label: {
|
|
6
|
-
en: 'Layout'
|
|
7
|
-
},
|
|
8
|
-
controls: [
|
|
9
|
-
{
|
|
10
|
-
setting: {
|
|
11
|
-
id: 'layout'
|
|
12
|
-
},
|
|
13
|
-
layout: 'vertical'
|
|
14
|
-
}
|
|
15
|
-
]
|
|
16
|
-
},
|
|
17
4
|
{
|
|
18
5
|
label: {
|
|
19
6
|
en: 'Size'
|
|
@@ -202,7 +189,7 @@ const SettingUIV2 = [
|
|
|
202
189
|
},
|
|
203
190
|
{
|
|
204
191
|
label: {
|
|
205
|
-
en: '
|
|
192
|
+
en: 'Icon'
|
|
206
193
|
},
|
|
207
194
|
setting: {
|
|
208
195
|
id: 'iconSvg'
|
|
@@ -290,7 +277,7 @@ const SettingUIV2 = [
|
|
|
290
277
|
en: 'Text color'
|
|
291
278
|
},
|
|
292
279
|
setting: {
|
|
293
|
-
id: '
|
|
280
|
+
id: 'textColorHover',
|
|
294
281
|
state: 'hover'
|
|
295
282
|
}
|
|
296
283
|
}
|
|
@@ -32,6 +32,7 @@ const SettingV2 = [
|
|
|
32
32
|
enableItemBackground: true,
|
|
33
33
|
itemPerRow: 3,
|
|
34
34
|
itemSpacing: 'large',
|
|
35
|
+
enableItemOpacity: true,
|
|
35
36
|
options: [
|
|
36
37
|
{
|
|
37
38
|
label: 'Featured top',
|
|
@@ -67,7 +68,8 @@ const SettingV2 = [
|
|
|
67
68
|
label: 'Image list 1 col',
|
|
68
69
|
value: 'one-col',
|
|
69
70
|
type: 'p-image-layout',
|
|
70
|
-
iconName: 'gp-product-image-layout-one-col'
|
|
71
|
+
iconName: 'gp-product-image-layout-one-col',
|
|
72
|
+
noPadding: 'y'
|
|
71
73
|
}
|
|
72
74
|
],
|
|
73
75
|
default: 'bottom-center'
|
|
@@ -13,27 +13,32 @@ const SettingUIV2 = [
|
|
|
13
13
|
setting: {
|
|
14
14
|
id: 'layoutType'
|
|
15
15
|
},
|
|
16
|
-
layout: 'vertical'
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
label: {
|
|
20
|
-
en: ''
|
|
21
|
-
},
|
|
22
|
-
setting: {
|
|
23
|
-
id: 'ratioLayoutLeft'
|
|
24
|
-
},
|
|
25
16
|
layout: 'vertical',
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
17
|
+
options: {
|
|
18
|
+
isComboLayout: true
|
|
19
|
+
},
|
|
20
|
+
controls: [
|
|
21
|
+
{
|
|
22
|
+
label: {
|
|
23
|
+
en: 'Ratio'
|
|
24
|
+
},
|
|
25
|
+
setting: {
|
|
26
|
+
id: 'ratioLayoutLeft'
|
|
27
|
+
},
|
|
28
|
+
layout: 'vertical',
|
|
29
|
+
conditionDisplay: "layoutType === 'left'"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
label: {
|
|
33
|
+
en: 'Ratio'
|
|
34
|
+
},
|
|
35
|
+
setting: {
|
|
36
|
+
id: 'ratioLayoutRight'
|
|
37
|
+
},
|
|
38
|
+
layout: 'vertical',
|
|
39
|
+
conditionDisplay: "layoutType === 'right'"
|
|
40
|
+
}
|
|
41
|
+
]
|
|
37
42
|
}
|
|
38
43
|
]
|
|
39
44
|
},
|
|
@@ -136,7 +136,7 @@ const ProductQuantity = (props)=>{
|
|
|
136
136
|
className: iconWrapperClass,
|
|
137
137
|
style: iconWidth,
|
|
138
138
|
dangerouslySetInnerHTML: {
|
|
139
|
-
__html: common.getPlusIcon(
|
|
139
|
+
__html: common.getPlusIcon(minusIcon)
|
|
140
140
|
}
|
|
141
141
|
})
|
|
142
142
|
})),
|
|
@@ -157,7 +157,7 @@ const ProductQuantity = (props)=>{
|
|
|
157
157
|
className: iconWrapperClass,
|
|
158
158
|
style: iconWidth,
|
|
159
159
|
dangerouslySetInnerHTML: {
|
|
160
|
-
__html: common.getMinusIcon(
|
|
160
|
+
__html: common.getMinusIcon(plusIcon)
|
|
161
161
|
}
|
|
162
162
|
})
|
|
163
163
|
}))
|
|
@@ -181,25 +181,26 @@ const ProductImageSettingsV2 = [
|
|
|
181
181
|
id: 'position',
|
|
182
182
|
label: 'Layout',
|
|
183
183
|
type: 'layout-selector',
|
|
184
|
-
iconViewBox: '0 0
|
|
184
|
+
iconViewBox: '0 0 50 50',
|
|
185
185
|
enableItemBackground: true,
|
|
186
186
|
itemPerRow: 3,
|
|
187
187
|
itemSpacing: 'large',
|
|
188
|
+
enableItemOpacity: true,
|
|
188
189
|
options: [
|
|
189
190
|
{
|
|
190
|
-
label: '
|
|
191
|
+
label: 'Featured top',
|
|
191
192
|
value: 'bottom-center',
|
|
192
193
|
type: 'p-image-layout',
|
|
193
194
|
iconName: 'gp-product-image-layout-bottom'
|
|
194
195
|
},
|
|
195
196
|
{
|
|
196
|
-
label: '
|
|
197
|
+
label: 'Featured right',
|
|
197
198
|
value: 'left',
|
|
198
199
|
type: 'p-image-layout',
|
|
199
200
|
iconName: 'gp-product-image-layout-left'
|
|
200
201
|
},
|
|
201
202
|
{
|
|
202
|
-
label: '
|
|
203
|
+
label: 'Featured left',
|
|
203
204
|
value: 'right',
|
|
204
205
|
type: 'p-image-layout',
|
|
205
206
|
iconName: 'gp-product-image-layout-right'
|
|
@@ -211,31 +212,32 @@ const ProductImageSettingsV2 = [
|
|
|
211
212
|
iconName: 'gp-product-image-layout-featured-only'
|
|
212
213
|
},
|
|
213
214
|
{
|
|
214
|
-
label: '
|
|
215
|
+
label: 'Image list 2 col',
|
|
215
216
|
value: 'two-col',
|
|
216
217
|
type: 'p-image-layout',
|
|
217
218
|
iconName: 'gp-product-image-layout-two-col'
|
|
218
219
|
},
|
|
219
220
|
{
|
|
220
|
-
label: '
|
|
221
|
+
label: 'Image list 1 col',
|
|
221
222
|
value: 'one-col',
|
|
222
223
|
type: 'p-image-layout',
|
|
223
|
-
iconName: 'gp-product-image-layout-one-col'
|
|
224
|
+
iconName: 'gp-product-image-layout-one-col',
|
|
225
|
+
noPadding: 'y'
|
|
224
226
|
},
|
|
225
227
|
{
|
|
226
|
-
label: '
|
|
228
|
+
label: 'Image list inside bottom',
|
|
227
229
|
value: 'inside-bottom',
|
|
228
230
|
type: 'p-image-layout',
|
|
229
231
|
iconName: 'gp-product-image-layout-bottom-inside'
|
|
230
232
|
},
|
|
231
233
|
{
|
|
232
|
-
label: '
|
|
234
|
+
label: 'Image list inside left',
|
|
233
235
|
value: 'inside-left',
|
|
234
236
|
type: 'p-image-layout',
|
|
235
237
|
iconName: 'gp-product-image-layout-left-inside'
|
|
236
238
|
},
|
|
237
239
|
{
|
|
238
|
-
label: '
|
|
240
|
+
label: 'Image list inside right',
|
|
239
241
|
value: 'inside-right',
|
|
240
242
|
type: 'p-image-layout',
|
|
241
243
|
iconName: 'gp-product-image-layout-right-inside'
|
|
@@ -14,23 +14,34 @@ const SettingUIV2 = [
|
|
|
14
14
|
layout: 'vertical',
|
|
15
15
|
setting: {
|
|
16
16
|
id: 'position'
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
type: 'control',
|
|
21
|
-
setting: {
|
|
22
|
-
id: 'ratioLayout'
|
|
23
17
|
},
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
type: 'control',
|
|
29
|
-
setting: {
|
|
30
|
-
id: 'ratioLayoutRight'
|
|
18
|
+
options: {
|
|
19
|
+
isComboLayout: true
|
|
31
20
|
},
|
|
32
|
-
|
|
33
|
-
|
|
21
|
+
controls: [
|
|
22
|
+
{
|
|
23
|
+
label: {
|
|
24
|
+
en: 'Ratio'
|
|
25
|
+
},
|
|
26
|
+
type: 'control',
|
|
27
|
+
setting: {
|
|
28
|
+
id: 'ratioLayout'
|
|
29
|
+
},
|
|
30
|
+
layout: 'vertical',
|
|
31
|
+
conditionDisplay: 'position == "left"'
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
label: {
|
|
35
|
+
en: 'Ratio'
|
|
36
|
+
},
|
|
37
|
+
type: 'control',
|
|
38
|
+
setting: {
|
|
39
|
+
id: 'ratioLayoutRight'
|
|
40
|
+
},
|
|
41
|
+
layout: 'vertical',
|
|
42
|
+
conditionDisplay: 'position == "right"'
|
|
43
|
+
}
|
|
44
|
+
]
|
|
34
45
|
}
|
|
35
46
|
]
|
|
36
47
|
},
|
|
@@ -24,8 +24,8 @@ const getButtonIconStyles = (styles, settings)=>{
|
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
26
|
const isEnableShadowStateForDevice = (deviceStyles)=>({
|
|
27
|
-
normal: deviceStyles?.normal?.
|
|
28
|
-
hover: deviceStyles?.hover?.
|
|
27
|
+
normal: deviceStyles?.normal?.enable,
|
|
28
|
+
hover: deviceStyles?.hover?.enable
|
|
29
29
|
});
|
|
30
30
|
const getShadowStyles = (styles)=>{
|
|
31
31
|
const { boxShadowBtnV2 } = styles || {};
|
|
@@ -57,7 +57,7 @@ const getTypoStyles = (styles)=>{
|
|
|
57
57
|
...getStyleShadow({
|
|
58
58
|
styleAppliedFor: 'text-shadow',
|
|
59
59
|
value: styles?.typo?.custom?.textShadow,
|
|
60
|
-
isEnableShadow: styles?.typo?.custom?.textShadow?.type !== 'none'
|
|
60
|
+
isEnableShadow: styles?.typo?.custom?.textShadow?.type !== 'none' && styles?.typo?.custom?.hasShadowText
|
|
61
61
|
})
|
|
62
62
|
};
|
|
63
63
|
};
|
|
@@ -43,7 +43,7 @@ const SubmitButtonSettings = [
|
|
|
43
43
|
id: 'label',
|
|
44
44
|
label: 'Text',
|
|
45
45
|
type: 'input',
|
|
46
|
-
default: '
|
|
46
|
+
default: 'Submit'
|
|
47
47
|
},
|
|
48
48
|
{
|
|
49
49
|
id: 'translate',
|
|
@@ -153,6 +153,13 @@ const SubmitButtonSettings = [
|
|
|
153
153
|
bbrr: '0px',
|
|
154
154
|
btlr: '0px',
|
|
155
155
|
radiusType: 'none'
|
|
156
|
+
},
|
|
157
|
+
hover: {
|
|
158
|
+
btrr: '0px',
|
|
159
|
+
bblr: '0px',
|
|
160
|
+
bbrr: '0px',
|
|
161
|
+
btlr: '0px',
|
|
162
|
+
radiusType: 'none'
|
|
156
163
|
}
|
|
157
164
|
}
|
|
158
165
|
}
|
|
@@ -166,6 +173,13 @@ const SubmitButtonSettings = [
|
|
|
166
173
|
bbrr: '8px',
|
|
167
174
|
btlr: '8px',
|
|
168
175
|
radiusType: 'rounded'
|
|
176
|
+
},
|
|
177
|
+
hover: {
|
|
178
|
+
btrr: '8px',
|
|
179
|
+
bblr: '8px',
|
|
180
|
+
bbrr: '8px',
|
|
181
|
+
btlr: '8px',
|
|
182
|
+
radiusType: 'rounded'
|
|
169
183
|
}
|
|
170
184
|
}
|
|
171
185
|
}
|
|
@@ -177,7 +191,24 @@ const SubmitButtonSettings = [
|
|
|
177
191
|
devices: {
|
|
178
192
|
desktop: {
|
|
179
193
|
default: {
|
|
180
|
-
normal: {
|
|
194
|
+
normal: {
|
|
195
|
+
type: 'shadow-1',
|
|
196
|
+
distance: '4px',
|
|
197
|
+
blur: '4px',
|
|
198
|
+
spread: '0px',
|
|
199
|
+
color: '#121212',
|
|
200
|
+
angle: 45,
|
|
201
|
+
enable: false
|
|
202
|
+
},
|
|
203
|
+
hover: {
|
|
204
|
+
type: 'shadow-1',
|
|
205
|
+
distance: '4px',
|
|
206
|
+
blur: '4px',
|
|
207
|
+
spread: '0px',
|
|
208
|
+
color: '#121212',
|
|
209
|
+
angle: 45,
|
|
210
|
+
enable: false
|
|
211
|
+
}
|
|
181
212
|
}
|
|
182
213
|
}
|
|
183
214
|
},
|
|
@@ -190,7 +221,61 @@ const SubmitButtonSettings = [
|
|
|
190
221
|
blur: '4px',
|
|
191
222
|
spread: '0px',
|
|
192
223
|
color: '#121212',
|
|
193
|
-
angle: 45
|
|
224
|
+
angle: 45,
|
|
225
|
+
enable: true
|
|
226
|
+
},
|
|
227
|
+
hover: {
|
|
228
|
+
type: 'shadow-1',
|
|
229
|
+
distance: '4px',
|
|
230
|
+
blur: '4px',
|
|
231
|
+
spread: '0px',
|
|
232
|
+
color: '#121212',
|
|
233
|
+
angle: 45,
|
|
234
|
+
enable: true
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
tablet: {
|
|
239
|
+
default: {
|
|
240
|
+
normal: {
|
|
241
|
+
type: 'shadow-1',
|
|
242
|
+
distance: '4px',
|
|
243
|
+
blur: '4px',
|
|
244
|
+
spread: '0px',
|
|
245
|
+
color: '#121212',
|
|
246
|
+
angle: 45,
|
|
247
|
+
enable: true
|
|
248
|
+
},
|
|
249
|
+
hover: {
|
|
250
|
+
type: 'shadow-1',
|
|
251
|
+
distance: '4px',
|
|
252
|
+
blur: '4px',
|
|
253
|
+
spread: '0px',
|
|
254
|
+
color: '#121212',
|
|
255
|
+
angle: 45,
|
|
256
|
+
enable: true
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
mobile: {
|
|
261
|
+
default: {
|
|
262
|
+
normal: {
|
|
263
|
+
type: 'shadow-1',
|
|
264
|
+
distance: '4px',
|
|
265
|
+
blur: '4px',
|
|
266
|
+
spread: '0px',
|
|
267
|
+
color: '#121212',
|
|
268
|
+
angle: 45,
|
|
269
|
+
enable: true
|
|
270
|
+
},
|
|
271
|
+
hover: {
|
|
272
|
+
type: 'shadow-1',
|
|
273
|
+
distance: '4px',
|
|
274
|
+
blur: '4px',
|
|
275
|
+
spread: '0px',
|
|
276
|
+
color: '#121212',
|
|
277
|
+
angle: 45,
|
|
278
|
+
enable: true
|
|
194
279
|
}
|
|
195
280
|
}
|
|
196
281
|
}
|
|
@@ -254,6 +339,25 @@ const SubmitButtonSettings = [
|
|
|
254
339
|
normal: true
|
|
255
340
|
}
|
|
256
341
|
},
|
|
342
|
+
{
|
|
343
|
+
id: 'textColorHover',
|
|
344
|
+
type: 'color-picker-v2',
|
|
345
|
+
devices: {
|
|
346
|
+
desktop: {
|
|
347
|
+
default: {
|
|
348
|
+
hover: 'text-3'
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
},
|
|
352
|
+
compoDefaultValue: {
|
|
353
|
+
desktop: {
|
|
354
|
+
default: {
|
|
355
|
+
hover: 'text-3'
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
},
|
|
359
|
+
enableGradient: true
|
|
360
|
+
},
|
|
257
361
|
{
|
|
258
362
|
id: 'hasBoxShadowBtn',
|
|
259
363
|
type: 'toggle',
|
|
@@ -459,7 +563,7 @@ const SubmitButtonSettings = [
|
|
|
459
563
|
devices: {
|
|
460
564
|
desktop: {
|
|
461
565
|
default: {
|
|
462
|
-
width: '
|
|
566
|
+
width: 'Auto',
|
|
463
567
|
height: 'Auto',
|
|
464
568
|
padding: {
|
|
465
569
|
type: 'medium',
|
|
@@ -1,17 +1,4 @@
|
|
|
1
1
|
const SettingUIV2 = [
|
|
2
|
-
{
|
|
3
|
-
label: {
|
|
4
|
-
en: 'Layout'
|
|
5
|
-
},
|
|
6
|
-
controls: [
|
|
7
|
-
{
|
|
8
|
-
setting: {
|
|
9
|
-
id: 'layout'
|
|
10
|
-
},
|
|
11
|
-
layout: 'vertical'
|
|
12
|
-
}
|
|
13
|
-
]
|
|
14
|
-
},
|
|
15
2
|
{
|
|
16
3
|
label: {
|
|
17
4
|
en: 'Size'
|
|
@@ -200,7 +187,7 @@ const SettingUIV2 = [
|
|
|
200
187
|
},
|
|
201
188
|
{
|
|
202
189
|
label: {
|
|
203
|
-
en: '
|
|
190
|
+
en: 'Icon'
|
|
204
191
|
},
|
|
205
192
|
setting: {
|
|
206
193
|
id: 'iconSvg'
|
|
@@ -288,7 +275,7 @@ const SettingUIV2 = [
|
|
|
288
275
|
en: 'Text color'
|
|
289
276
|
},
|
|
290
277
|
setting: {
|
|
291
|
-
id: '
|
|
278
|
+
id: 'textColorHover',
|
|
292
279
|
state: 'hover'
|
|
293
280
|
}
|
|
294
281
|
}
|
|
@@ -30,6 +30,7 @@ const SettingV2 = [
|
|
|
30
30
|
enableItemBackground: true,
|
|
31
31
|
itemPerRow: 3,
|
|
32
32
|
itemSpacing: 'large',
|
|
33
|
+
enableItemOpacity: true,
|
|
33
34
|
options: [
|
|
34
35
|
{
|
|
35
36
|
label: 'Featured top',
|
|
@@ -65,7 +66,8 @@ const SettingV2 = [
|
|
|
65
66
|
label: 'Image list 1 col',
|
|
66
67
|
value: 'one-col',
|
|
67
68
|
type: 'p-image-layout',
|
|
68
|
-
iconName: 'gp-product-image-layout-one-col'
|
|
69
|
+
iconName: 'gp-product-image-layout-one-col',
|
|
70
|
+
noPadding: 'y'
|
|
69
71
|
}
|
|
70
72
|
],
|
|
71
73
|
default: 'bottom-center'
|
|
@@ -11,27 +11,32 @@ const SettingUIV2 = [
|
|
|
11
11
|
setting: {
|
|
12
12
|
id: 'layoutType'
|
|
13
13
|
},
|
|
14
|
-
layout: 'vertical'
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
label: {
|
|
18
|
-
en: ''
|
|
19
|
-
},
|
|
20
|
-
setting: {
|
|
21
|
-
id: 'ratioLayoutLeft'
|
|
22
|
-
},
|
|
23
14
|
layout: 'vertical',
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
15
|
+
options: {
|
|
16
|
+
isComboLayout: true
|
|
17
|
+
},
|
|
18
|
+
controls: [
|
|
19
|
+
{
|
|
20
|
+
label: {
|
|
21
|
+
en: 'Ratio'
|
|
22
|
+
},
|
|
23
|
+
setting: {
|
|
24
|
+
id: 'ratioLayoutLeft'
|
|
25
|
+
},
|
|
26
|
+
layout: 'vertical',
|
|
27
|
+
conditionDisplay: "layoutType === 'left'"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
label: {
|
|
31
|
+
en: 'Ratio'
|
|
32
|
+
},
|
|
33
|
+
setting: {
|
|
34
|
+
id: 'ratioLayoutRight'
|
|
35
|
+
},
|
|
36
|
+
layout: 'vertical',
|
|
37
|
+
conditionDisplay: "layoutType === 'right'"
|
|
38
|
+
}
|
|
39
|
+
]
|
|
35
40
|
}
|
|
36
41
|
]
|
|
37
42
|
},
|
|
@@ -132,7 +132,7 @@ const ProductQuantity = (props)=>{
|
|
|
132
132
|
className: iconWrapperClass,
|
|
133
133
|
style: iconWidth,
|
|
134
134
|
dangerouslySetInnerHTML: {
|
|
135
|
-
__html: getPlusIcon(
|
|
135
|
+
__html: getPlusIcon(minusIcon)
|
|
136
136
|
}
|
|
137
137
|
})
|
|
138
138
|
})),
|
|
@@ -153,7 +153,7 @@ const ProductQuantity = (props)=>{
|
|
|
153
153
|
className: iconWrapperClass,
|
|
154
154
|
style: iconWidth,
|
|
155
155
|
dangerouslySetInnerHTML: {
|
|
156
|
-
__html: getMinusIcon(
|
|
156
|
+
__html: getMinusIcon(plusIcon)
|
|
157
157
|
}
|
|
158
158
|
})
|
|
159
159
|
}))
|
|
@@ -179,25 +179,26 @@ const ProductImageSettingsV2 = [
|
|
|
179
179
|
id: 'position',
|
|
180
180
|
label: 'Layout',
|
|
181
181
|
type: 'layout-selector',
|
|
182
|
-
iconViewBox: '0 0
|
|
182
|
+
iconViewBox: '0 0 50 50',
|
|
183
183
|
enableItemBackground: true,
|
|
184
184
|
itemPerRow: 3,
|
|
185
185
|
itemSpacing: 'large',
|
|
186
|
+
enableItemOpacity: true,
|
|
186
187
|
options: [
|
|
187
188
|
{
|
|
188
|
-
label: '
|
|
189
|
+
label: 'Featured top',
|
|
189
190
|
value: 'bottom-center',
|
|
190
191
|
type: 'p-image-layout',
|
|
191
192
|
iconName: 'gp-product-image-layout-bottom'
|
|
192
193
|
},
|
|
193
194
|
{
|
|
194
|
-
label: '
|
|
195
|
+
label: 'Featured right',
|
|
195
196
|
value: 'left',
|
|
196
197
|
type: 'p-image-layout',
|
|
197
198
|
iconName: 'gp-product-image-layout-left'
|
|
198
199
|
},
|
|
199
200
|
{
|
|
200
|
-
label: '
|
|
201
|
+
label: 'Featured left',
|
|
201
202
|
value: 'right',
|
|
202
203
|
type: 'p-image-layout',
|
|
203
204
|
iconName: 'gp-product-image-layout-right'
|
|
@@ -209,31 +210,32 @@ const ProductImageSettingsV2 = [
|
|
|
209
210
|
iconName: 'gp-product-image-layout-featured-only'
|
|
210
211
|
},
|
|
211
212
|
{
|
|
212
|
-
label: '
|
|
213
|
+
label: 'Image list 2 col',
|
|
213
214
|
value: 'two-col',
|
|
214
215
|
type: 'p-image-layout',
|
|
215
216
|
iconName: 'gp-product-image-layout-two-col'
|
|
216
217
|
},
|
|
217
218
|
{
|
|
218
|
-
label: '
|
|
219
|
+
label: 'Image list 1 col',
|
|
219
220
|
value: 'one-col',
|
|
220
221
|
type: 'p-image-layout',
|
|
221
|
-
iconName: 'gp-product-image-layout-one-col'
|
|
222
|
+
iconName: 'gp-product-image-layout-one-col',
|
|
223
|
+
noPadding: 'y'
|
|
222
224
|
},
|
|
223
225
|
{
|
|
224
|
-
label: '
|
|
226
|
+
label: 'Image list inside bottom',
|
|
225
227
|
value: 'inside-bottom',
|
|
226
228
|
type: 'p-image-layout',
|
|
227
229
|
iconName: 'gp-product-image-layout-bottom-inside'
|
|
228
230
|
},
|
|
229
231
|
{
|
|
230
|
-
label: '
|
|
232
|
+
label: 'Image list inside left',
|
|
231
233
|
value: 'inside-left',
|
|
232
234
|
type: 'p-image-layout',
|
|
233
235
|
iconName: 'gp-product-image-layout-left-inside'
|
|
234
236
|
},
|
|
235
237
|
{
|
|
236
|
-
label: '
|
|
238
|
+
label: 'Image list inside right',
|
|
237
239
|
value: 'inside-right',
|
|
238
240
|
type: 'p-image-layout',
|
|
239
241
|
iconName: 'gp-product-image-layout-right-inside'
|
|
@@ -12,23 +12,34 @@ const SettingUIV2 = [
|
|
|
12
12
|
layout: 'vertical',
|
|
13
13
|
setting: {
|
|
14
14
|
id: 'position'
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
type: 'control',
|
|
19
|
-
setting: {
|
|
20
|
-
id: 'ratioLayout'
|
|
21
15
|
},
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
type: 'control',
|
|
27
|
-
setting: {
|
|
28
|
-
id: 'ratioLayoutRight'
|
|
16
|
+
options: {
|
|
17
|
+
isComboLayout: true
|
|
29
18
|
},
|
|
30
|
-
|
|
31
|
-
|
|
19
|
+
controls: [
|
|
20
|
+
{
|
|
21
|
+
label: {
|
|
22
|
+
en: 'Ratio'
|
|
23
|
+
},
|
|
24
|
+
type: 'control',
|
|
25
|
+
setting: {
|
|
26
|
+
id: 'ratioLayout'
|
|
27
|
+
},
|
|
28
|
+
layout: 'vertical',
|
|
29
|
+
conditionDisplay: 'position == "left"'
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
label: {
|
|
33
|
+
en: 'Ratio'
|
|
34
|
+
},
|
|
35
|
+
type: 'control',
|
|
36
|
+
setting: {
|
|
37
|
+
id: 'ratioLayoutRight'
|
|
38
|
+
},
|
|
39
|
+
layout: 'vertical',
|
|
40
|
+
conditionDisplay: 'position == "right"'
|
|
41
|
+
}
|
|
42
|
+
]
|
|
32
43
|
}
|
|
33
44
|
]
|
|
34
45
|
},
|
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.416",
|
|
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.415",
|
|
27
27
|
"@gem-sdk/styles": "2.0.0-dev.381",
|
|
28
28
|
"@gem-sdk/system": "2.0.0-dev.371",
|
|
29
29
|
"@types/react-transition-group": "^4.4.5"
|