@gem-sdk/components 2.0.0-dev.429 → 2.0.0-dev.432
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/ArticleList.js +2 -2
- package/dist/cjs/banner/setting/setting.js +4 -2
- package/dist/cjs/carousel/setting/configs/settingV2.js +1 -1
- package/dist/cjs/coupon/setting/config/settings.js +3 -1
- package/dist/cjs/dialog/setting/configs/uiV2.js +0 -8
- package/dist/cjs/form/components/contact/common/composeStyles.js +3 -3
- package/dist/cjs/form/setting/form-dropdown/configs/uiV2.js +0 -20
- package/dist/cjs/form/setting/newsletter/NewsletterInitConfig.js +13 -0
- package/dist/cjs/form/setting/newsletter/configs/settings.js +10 -6
- package/dist/cjs/form/setting/newsletter/configs/uiV2.js +50 -3
- package/dist/cjs/marquee/setting/configs/settingsV2.js +1 -1
- package/dist/cjs/product/components/ProductQuantity/common/common.js +4 -10
- package/dist/cjs/product/components/ProductQuantity/index.js +3 -1
- package/dist/cjs/product/setting/product-image-v2/configs/setting-v2/ProductFeatureImage.js +7 -4
- package/dist/cjs/product/setting/product-image-v2/configs/setting-v2/ProductGalleryImage.js +4 -3
- package/dist/cjs/product/setting/product-image-v2/configs/setting-v2/index.js +1 -1
- package/dist/cjs/product/setting/product-quantity/configs/settings.js +14 -13
- package/dist/cjs/third-party/setting/PushOwl/index.js +3 -1
- package/dist/cjs/third-party/setting/Stamped/VisualGallery.js +4 -2
- package/dist/esm/article/setting/ArticleList.js +2 -2
- package/dist/esm/banner/setting/setting.js +4 -2
- package/dist/esm/carousel/setting/configs/settingV2.js +1 -1
- package/dist/esm/coupon/setting/config/settings.js +3 -1
- package/dist/esm/dialog/setting/configs/uiV2.js +0 -8
- package/dist/esm/form/components/contact/common/composeStyles.js +3 -3
- package/dist/esm/form/setting/form-dropdown/configs/uiV2.js +0 -20
- package/dist/esm/form/setting/newsletter/NewsletterInitConfig.js +13 -0
- package/dist/esm/form/setting/newsletter/configs/settings.js +10 -6
- package/dist/esm/form/setting/newsletter/configs/uiV2.js +50 -3
- package/dist/esm/marquee/setting/configs/settingsV2.js +1 -1
- package/dist/esm/product/components/ProductQuantity/common/common.js +5 -11
- package/dist/esm/product/components/ProductQuantity/index.js +3 -1
- package/dist/esm/product/setting/product-image-v2/configs/setting-v2/ProductFeatureImage.js +7 -4
- package/dist/esm/product/setting/product-image-v2/configs/setting-v2/ProductGalleryImage.js +4 -3
- package/dist/esm/product/setting/product-image-v2/configs/setting-v2/index.js +1 -1
- package/dist/esm/product/setting/product-quantity/configs/settings.js +14 -13
- package/dist/esm/third-party/setting/PushOwl/index.js +3 -1
- package/dist/esm/third-party/setting/Stamped/VisualGallery.js +4 -2
- package/dist/types/index.d.ts +4 -4
- package/package.json +2 -2
|
@@ -29,7 +29,7 @@ const config = {
|
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
31
|
id: 'slideToShow',
|
|
32
|
-
type: '
|
|
32
|
+
type: 'input:slider',
|
|
33
33
|
min: 1,
|
|
34
34
|
max: 6,
|
|
35
35
|
label: 'Blogs per rows',
|
|
@@ -81,7 +81,7 @@ const config = {
|
|
|
81
81
|
},
|
|
82
82
|
{
|
|
83
83
|
id: 'numberOfArticle',
|
|
84
|
-
type: '
|
|
84
|
+
type: 'input:slider',
|
|
85
85
|
min: 1,
|
|
86
86
|
max: 50,
|
|
87
87
|
label: 'Number of article',
|
|
@@ -474,7 +474,7 @@ const SettingsV2 = [
|
|
|
474
474
|
},
|
|
475
475
|
{
|
|
476
476
|
id: 'hoverEffectScale',
|
|
477
|
-
type: '
|
|
477
|
+
type: 'input:slider',
|
|
478
478
|
label: 'Zoom Value',
|
|
479
479
|
units: [
|
|
480
480
|
'%'
|
|
@@ -482,7 +482,9 @@ const SettingsV2 = [
|
|
|
482
482
|
min: 100,
|
|
483
483
|
max: 200,
|
|
484
484
|
step: 5,
|
|
485
|
-
default: '110%'
|
|
485
|
+
default: '110%',
|
|
486
|
+
useOnlyUnitInit: true,
|
|
487
|
+
isNumber: true
|
|
486
488
|
},
|
|
487
489
|
{
|
|
488
490
|
id: 'hoverEffectDuration',
|
|
@@ -14,9 +14,9 @@ const composeContainerStyles = (setting, styles)=>{
|
|
|
14
14
|
'--w': '100%'
|
|
15
15
|
},
|
|
16
16
|
...composeGlobalSize.padding,
|
|
17
|
-
...core.composeBorderResponsive(styles?.
|
|
18
|
-
...core.composeRadiusResponsive(styles?.
|
|
19
|
-
...core.getResponsiveStyleShadowWithoutState(styles?.
|
|
17
|
+
...core.composeBorderResponsive(styles?.border),
|
|
18
|
+
...core.composeRadiusResponsive(styles?.rounded),
|
|
19
|
+
...core.getResponsiveStyleShadowWithoutState(styles?.boxShadow, 'box-shadow', styles?.boxShadow),
|
|
20
20
|
...core.getStyleBackgroundByDevice(background),
|
|
21
21
|
...core.getGradientBgrStyleByDevice(background)
|
|
22
22
|
});
|
|
@@ -81,30 +81,10 @@ const SettingUIV2 = [
|
|
|
81
81
|
field: 'width'
|
|
82
82
|
},
|
|
83
83
|
displayOptions: [
|
|
84
|
-
{
|
|
85
|
-
label: 'Fit content',
|
|
86
|
-
value: 'Auto',
|
|
87
|
-
showValue: true
|
|
88
|
-
},
|
|
89
84
|
{
|
|
90
85
|
label: 'Full',
|
|
91
86
|
value: '100%',
|
|
92
87
|
showValue: true
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
label: 'Small',
|
|
96
|
-
value: '100px',
|
|
97
|
-
showValue: true
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
label: 'Medium',
|
|
101
|
-
value: '116px',
|
|
102
|
-
showValue: true
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
label: 'Large',
|
|
106
|
-
value: '132px',
|
|
107
|
-
showValue: true
|
|
108
88
|
}
|
|
109
89
|
]
|
|
110
90
|
},
|
|
@@ -22,6 +22,19 @@ const newsletterInitConfig = [
|
|
|
22
22
|
radiusType: 'none'
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
+
},
|
|
26
|
+
boxShadow: {
|
|
27
|
+
desktop: {
|
|
28
|
+
normal: {
|
|
29
|
+
type: 'shadow-2',
|
|
30
|
+
distance: '12px',
|
|
31
|
+
blur: '12px',
|
|
32
|
+
spread: '0px',
|
|
33
|
+
color: 'rgba(18, 18, 18, 0.2)',
|
|
34
|
+
angle: 45,
|
|
35
|
+
enable: false
|
|
36
|
+
}
|
|
37
|
+
}
|
|
25
38
|
}
|
|
26
39
|
},
|
|
27
40
|
childrens: [
|
|
@@ -205,7 +205,7 @@ const NewsletterSettings = [
|
|
|
205
205
|
]
|
|
206
206
|
},
|
|
207
207
|
{
|
|
208
|
-
id: '
|
|
208
|
+
id: 'border',
|
|
209
209
|
type: 'border-v2',
|
|
210
210
|
devices: {
|
|
211
211
|
desktop: {
|
|
@@ -231,7 +231,7 @@ const NewsletterSettings = [
|
|
|
231
231
|
}
|
|
232
232
|
},
|
|
233
233
|
{
|
|
234
|
-
id: '
|
|
234
|
+
id: 'rounded',
|
|
235
235
|
type: 'corner-v2',
|
|
236
236
|
devices: {
|
|
237
237
|
desktop: {
|
|
@@ -257,12 +257,17 @@ const NewsletterSettings = [
|
|
|
257
257
|
}
|
|
258
258
|
},
|
|
259
259
|
{
|
|
260
|
-
id: '
|
|
260
|
+
id: 'boxShadow',
|
|
261
261
|
type: 'shadow-v2',
|
|
262
262
|
devices: {
|
|
263
263
|
desktop: {
|
|
264
264
|
default: {
|
|
265
|
-
|
|
265
|
+
type: 'shadow-2',
|
|
266
|
+
distance: '12px',
|
|
267
|
+
blur: '12px',
|
|
268
|
+
spread: '0px',
|
|
269
|
+
color: 'rgba(18, 18, 18, 0.2)',
|
|
270
|
+
angle: 45
|
|
266
271
|
}
|
|
267
272
|
}
|
|
268
273
|
},
|
|
@@ -274,8 +279,7 @@ const NewsletterSettings = [
|
|
|
274
279
|
blur: '12px',
|
|
275
280
|
spread: '0px',
|
|
276
281
|
color: 'rgba(18, 18, 18, 0.2)',
|
|
277
|
-
angle: 45
|
|
278
|
-
enable: true
|
|
282
|
+
angle: 45
|
|
279
283
|
}
|
|
280
284
|
}
|
|
281
285
|
}
|
|
@@ -131,7 +131,8 @@ const SettingUIV2 = [
|
|
|
131
131
|
en: 'Border'
|
|
132
132
|
},
|
|
133
133
|
setting: {
|
|
134
|
-
id: '
|
|
134
|
+
id: 'border',
|
|
135
|
+
state: 'normal'
|
|
135
136
|
}
|
|
136
137
|
},
|
|
137
138
|
{
|
|
@@ -139,7 +140,8 @@ const SettingUIV2 = [
|
|
|
139
140
|
en: 'Corner'
|
|
140
141
|
},
|
|
141
142
|
setting: {
|
|
142
|
-
id: '
|
|
143
|
+
id: 'rounded',
|
|
144
|
+
state: 'normal'
|
|
143
145
|
}
|
|
144
146
|
},
|
|
145
147
|
{
|
|
@@ -147,7 +149,52 @@ const SettingUIV2 = [
|
|
|
147
149
|
en: 'Shadow'
|
|
148
150
|
},
|
|
149
151
|
setting: {
|
|
150
|
-
id: '
|
|
152
|
+
id: 'boxShadow',
|
|
153
|
+
state: 'normal'
|
|
154
|
+
},
|
|
155
|
+
options: {
|
|
156
|
+
updateFields: [
|
|
157
|
+
{
|
|
158
|
+
field: 'enable',
|
|
159
|
+
settingId: 'hasBoxShadow',
|
|
160
|
+
state: 'normal'
|
|
161
|
+
}
|
|
162
|
+
]
|
|
163
|
+
},
|
|
164
|
+
controlChangeTrigger: {
|
|
165
|
+
settings: [
|
|
166
|
+
{
|
|
167
|
+
condition: `boxShadow.normal.enable === true`,
|
|
168
|
+
source: [
|
|
169
|
+
'boxShadow',
|
|
170
|
+
'hasBoxShadow'
|
|
171
|
+
],
|
|
172
|
+
action: {
|
|
173
|
+
controlId: 'hasBoxShadow',
|
|
174
|
+
groupType: 'advanced',
|
|
175
|
+
controlType: 'advanced',
|
|
176
|
+
state: 'normal',
|
|
177
|
+
newValue: true
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
condition: `boxShadow.normal.enable === false`,
|
|
182
|
+
source: [
|
|
183
|
+
'boxShadow',
|
|
184
|
+
'hasBoxShadow'
|
|
185
|
+
],
|
|
186
|
+
action: {
|
|
187
|
+
controlId: 'hasBoxShadow',
|
|
188
|
+
groupType: 'advanced',
|
|
189
|
+
controlType: 'advanced',
|
|
190
|
+
state: 'normal',
|
|
191
|
+
newValue: false
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
],
|
|
195
|
+
options: {
|
|
196
|
+
noRecordHistory: true
|
|
197
|
+
}
|
|
151
198
|
}
|
|
152
199
|
}
|
|
153
200
|
]
|
|
@@ -30,17 +30,11 @@ const getMinusIcon = (minusIcon)=>{
|
|
|
30
30
|
`;
|
|
31
31
|
};
|
|
32
32
|
const getIconWidth = (iconSizeCustom)=>{
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
if (
|
|
36
|
-
check = false;
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
return check ? core.makeStyleResponsive('w', iconSizeCustom, 'px') : core.makeStyleResponsive('w', {
|
|
40
|
-
desktop: `${(iconSizeCustom?.['desktop'])?.width}px`,
|
|
41
|
-
tablet: `${(iconSizeCustom?.['tablet'])?.width}px`,
|
|
42
|
-
mobile: `${(iconSizeCustom?.['mobile'])?.width}px`
|
|
33
|
+
if (!iconSizeCustom) return {};
|
|
34
|
+
core.DEVICES.forEach((device)=>{
|
|
35
|
+
if (!iconSizeCustom?.[device]) iconSizeCustom[device] = iconSizeCustom['desktop'] || undefined;
|
|
43
36
|
});
|
|
37
|
+
return core.makeStyleResponsive('w', iconSizeCustom);
|
|
44
38
|
};
|
|
45
39
|
|
|
46
40
|
exports.getIconWidth = getIconWidth;
|
|
@@ -114,7 +114,9 @@ const ProductQuantity = (props)=>{
|
|
|
114
114
|
const iconWrapperClass = system.createClass({
|
|
115
115
|
...getClasses.getIconWrapperClasses()
|
|
116
116
|
});
|
|
117
|
-
const iconWidth =
|
|
117
|
+
const iconWidth = system.createStyle({
|
|
118
|
+
...common.getIconWidth(iconSizeCustom)
|
|
119
|
+
});
|
|
118
120
|
return /*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
119
121
|
ref: ref,
|
|
120
122
|
...containerAttrs,
|
|
@@ -54,7 +54,7 @@ const productFeatureImageSetting = [
|
|
|
54
54
|
},
|
|
55
55
|
{
|
|
56
56
|
id: 'zoom',
|
|
57
|
-
type: '
|
|
57
|
+
type: 'input:slider',
|
|
58
58
|
label: 'Zoom Value',
|
|
59
59
|
min: 100,
|
|
60
60
|
max: 200,
|
|
@@ -63,7 +63,8 @@ const productFeatureImageSetting = [
|
|
|
63
63
|
units: [
|
|
64
64
|
'%'
|
|
65
65
|
],
|
|
66
|
-
useOnlyUnitInit: true
|
|
66
|
+
useOnlyUnitInit: true,
|
|
67
|
+
isNumber: true
|
|
67
68
|
},
|
|
68
69
|
{
|
|
69
70
|
id: 'otherImage',
|
|
@@ -169,13 +170,15 @@ const productFeatureImageSetting = [
|
|
|
169
170
|
},
|
|
170
171
|
{
|
|
171
172
|
id: 'ftAnimationSpeed',
|
|
172
|
-
type: '
|
|
173
|
+
type: 'input:slider',
|
|
173
174
|
label: 'Speed (s)',
|
|
174
175
|
hide: true,
|
|
175
176
|
min: 0,
|
|
176
177
|
max: 60,
|
|
177
178
|
step: 1,
|
|
178
|
-
default: 1
|
|
179
|
+
default: 1,
|
|
180
|
+
useOnlyUnitInit: true,
|
|
181
|
+
isNumber: true
|
|
179
182
|
},
|
|
180
183
|
{
|
|
181
184
|
id: 'ftArrowIcon',
|
|
@@ -67,7 +67,7 @@ const productGalleryImageSetting = [
|
|
|
67
67
|
},
|
|
68
68
|
{
|
|
69
69
|
id: 'galleryZoom',
|
|
70
|
-
type: '
|
|
70
|
+
type: 'input:slider',
|
|
71
71
|
label: 'Zoom Value',
|
|
72
72
|
min: 100,
|
|
73
73
|
max: 200,
|
|
@@ -76,7 +76,8 @@ const productGalleryImageSetting = [
|
|
|
76
76
|
units: [
|
|
77
77
|
'%'
|
|
78
78
|
],
|
|
79
|
-
useOnlyUnitInit: true
|
|
79
|
+
useOnlyUnitInit: true,
|
|
80
|
+
isNumber: true
|
|
80
81
|
},
|
|
81
82
|
{
|
|
82
83
|
id: 'clickOpenLightBox',
|
|
@@ -162,7 +163,7 @@ const productGalleryImageSetting = [
|
|
|
162
163
|
},
|
|
163
164
|
{
|
|
164
165
|
id: 'speed',
|
|
165
|
-
type: '
|
|
166
|
+
type: 'input:slider',
|
|
166
167
|
label: 'Speed (s)',
|
|
167
168
|
hide: true,
|
|
168
169
|
min: 0,
|
|
@@ -8,7 +8,7 @@ const ProductQuantitySettings = [
|
|
|
8
8
|
id: 'updatePrice',
|
|
9
9
|
label: 'Update price',
|
|
10
10
|
type: 'toggle',
|
|
11
|
-
default:
|
|
11
|
+
default: true
|
|
12
12
|
},
|
|
13
13
|
{
|
|
14
14
|
id: 'qtyStyle',
|
|
@@ -198,10 +198,11 @@ const ProductQuantitySettings = [
|
|
|
198
198
|
{
|
|
199
199
|
id: 'iconSizeCustom',
|
|
200
200
|
type: 'input:stepper',
|
|
201
|
+
includeUnit: 'px',
|
|
201
202
|
min: 1,
|
|
202
203
|
devices: {
|
|
203
204
|
desktop: {
|
|
204
|
-
default:
|
|
205
|
+
default: '16px'
|
|
205
206
|
}
|
|
206
207
|
}
|
|
207
208
|
}
|
|
@@ -306,28 +307,29 @@ const ProductQuantitySettings = [
|
|
|
306
307
|
id: 'inputBackgroundColor',
|
|
307
308
|
type: 'color-picker-v2',
|
|
308
309
|
label: 'Background Color',
|
|
309
|
-
default: {
|
|
310
|
-
normal: 'bg-3'
|
|
311
|
-
},
|
|
312
310
|
state: {
|
|
313
311
|
hover: true,
|
|
314
312
|
normal: true
|
|
315
313
|
},
|
|
314
|
+
compoDefaultValue: {
|
|
315
|
+
normal: 'bg-3',
|
|
316
|
+
hover: 'highlight'
|
|
317
|
+
},
|
|
316
318
|
enableGradient: true
|
|
317
319
|
},
|
|
318
320
|
{
|
|
319
321
|
id: 'buttonBackgroundColor',
|
|
320
322
|
type: 'color-picker-v2',
|
|
321
323
|
label: 'Button Background Color',
|
|
322
|
-
default: {
|
|
323
|
-
normal: 'brand',
|
|
324
|
-
hover: 'highlight'
|
|
325
|
-
},
|
|
326
324
|
state: {
|
|
327
325
|
hover: true,
|
|
328
326
|
normal: true
|
|
329
327
|
},
|
|
330
|
-
enableGradient: true
|
|
328
|
+
enableGradient: true,
|
|
329
|
+
compoDefaultValue: {
|
|
330
|
+
normal: 'brand',
|
|
331
|
+
hover: 'highlight'
|
|
332
|
+
}
|
|
331
333
|
},
|
|
332
334
|
{
|
|
333
335
|
id: 'iconColor',
|
|
@@ -356,7 +358,7 @@ const ProductQuantitySettings = [
|
|
|
356
358
|
border: 'solid',
|
|
357
359
|
borderWidth: '1px',
|
|
358
360
|
width: '1px 1px 1px 1px',
|
|
359
|
-
color: '
|
|
361
|
+
color: 'line-1',
|
|
360
362
|
isCustom: true
|
|
361
363
|
},
|
|
362
364
|
hover: {
|
|
@@ -364,7 +366,6 @@ const ProductQuantitySettings = [
|
|
|
364
366
|
border: 'none',
|
|
365
367
|
borderWidth: '1px',
|
|
366
368
|
width: '1px 1px 1px 1px',
|
|
367
|
-
color: '#121212',
|
|
368
369
|
isCustom: true
|
|
369
370
|
}
|
|
370
371
|
}
|
|
@@ -500,7 +501,7 @@ const ProductQuantitySettings = [
|
|
|
500
501
|
id: 'dividerColor',
|
|
501
502
|
type: 'color-picker-v2',
|
|
502
503
|
label: 'Divider Color',
|
|
503
|
-
|
|
504
|
+
compoDefaultValue: {
|
|
504
505
|
desktop: {
|
|
505
506
|
default: {
|
|
506
507
|
normal: '#121212'
|
|
@@ -367,12 +367,14 @@ const config = {
|
|
|
367
367
|
},
|
|
368
368
|
{
|
|
369
369
|
id: 'iconDimension',
|
|
370
|
-
type: '
|
|
370
|
+
type: 'input:slider',
|
|
371
371
|
label: 'Size',
|
|
372
372
|
hide: true,
|
|
373
373
|
min: 0,
|
|
374
374
|
max: 100,
|
|
375
375
|
step: 1,
|
|
376
|
+
useOnlyUnitInit: true,
|
|
377
|
+
isNumber: true,
|
|
376
378
|
units: [
|
|
377
379
|
'px',
|
|
378
380
|
'em',
|
|
@@ -32,13 +32,15 @@ const settings = {
|
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
34
|
id: 'hoverOpacity',
|
|
35
|
-
type: '
|
|
35
|
+
type: 'input:slider',
|
|
36
36
|
label: 'Hover Opacity',
|
|
37
37
|
units: [
|
|
38
38
|
'%'
|
|
39
39
|
],
|
|
40
40
|
min: 0,
|
|
41
|
-
max: 100
|
|
41
|
+
max: 100,
|
|
42
|
+
useOnlyUnitInit: true,
|
|
43
|
+
isNumber: true
|
|
42
44
|
}
|
|
43
45
|
]
|
|
44
46
|
};
|
|
@@ -25,7 +25,7 @@ const config = {
|
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
id: 'slideToShow',
|
|
28
|
-
type: '
|
|
28
|
+
type: 'input:slider',
|
|
29
29
|
min: 1,
|
|
30
30
|
max: 6,
|
|
31
31
|
label: 'Blogs per rows',
|
|
@@ -77,7 +77,7 @@ const config = {
|
|
|
77
77
|
},
|
|
78
78
|
{
|
|
79
79
|
id: 'numberOfArticle',
|
|
80
|
-
type: '
|
|
80
|
+
type: 'input:slider',
|
|
81
81
|
min: 1,
|
|
82
82
|
max: 50,
|
|
83
83
|
label: 'Number of article',
|
|
@@ -472,7 +472,7 @@ const SettingsV2 = [
|
|
|
472
472
|
},
|
|
473
473
|
{
|
|
474
474
|
id: 'hoverEffectScale',
|
|
475
|
-
type: '
|
|
475
|
+
type: 'input:slider',
|
|
476
476
|
label: 'Zoom Value',
|
|
477
477
|
units: [
|
|
478
478
|
'%'
|
|
@@ -480,7 +480,9 @@ const SettingsV2 = [
|
|
|
480
480
|
min: 100,
|
|
481
481
|
max: 200,
|
|
482
482
|
step: 5,
|
|
483
|
-
default: '110%'
|
|
483
|
+
default: '110%',
|
|
484
|
+
useOnlyUnitInit: true,
|
|
485
|
+
isNumber: true
|
|
484
486
|
},
|
|
485
487
|
{
|
|
486
488
|
id: 'hoverEffectDuration',
|
|
@@ -12,9 +12,9 @@ const composeContainerStyles = (setting, styles)=>{
|
|
|
12
12
|
'--w': '100%'
|
|
13
13
|
},
|
|
14
14
|
...composeGlobalSize.padding,
|
|
15
|
-
...composeBorderResponsive(styles?.
|
|
16
|
-
...composeRadiusResponsive(styles?.
|
|
17
|
-
...getResponsiveStyleShadowWithoutState(styles?.
|
|
15
|
+
...composeBorderResponsive(styles?.border),
|
|
16
|
+
...composeRadiusResponsive(styles?.rounded),
|
|
17
|
+
...getResponsiveStyleShadowWithoutState(styles?.boxShadow, 'box-shadow', styles?.boxShadow),
|
|
18
18
|
...getStyleBackgroundByDevice(background),
|
|
19
19
|
...getGradientBgrStyleByDevice(background)
|
|
20
20
|
});
|
|
@@ -79,30 +79,10 @@ const SettingUIV2 = [
|
|
|
79
79
|
field: 'width'
|
|
80
80
|
},
|
|
81
81
|
displayOptions: [
|
|
82
|
-
{
|
|
83
|
-
label: 'Fit content',
|
|
84
|
-
value: 'Auto',
|
|
85
|
-
showValue: true
|
|
86
|
-
},
|
|
87
82
|
{
|
|
88
83
|
label: 'Full',
|
|
89
84
|
value: '100%',
|
|
90
85
|
showValue: true
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
label: 'Small',
|
|
94
|
-
value: '100px',
|
|
95
|
-
showValue: true
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
label: 'Medium',
|
|
99
|
-
value: '116px',
|
|
100
|
-
showValue: true
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
label: 'Large',
|
|
104
|
-
value: '132px',
|
|
105
|
-
showValue: true
|
|
106
86
|
}
|
|
107
87
|
]
|
|
108
88
|
},
|
|
@@ -20,6 +20,19 @@ const newsletterInitConfig = [
|
|
|
20
20
|
radiusType: 'none'
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
+
},
|
|
24
|
+
boxShadow: {
|
|
25
|
+
desktop: {
|
|
26
|
+
normal: {
|
|
27
|
+
type: 'shadow-2',
|
|
28
|
+
distance: '12px',
|
|
29
|
+
blur: '12px',
|
|
30
|
+
spread: '0px',
|
|
31
|
+
color: 'rgba(18, 18, 18, 0.2)',
|
|
32
|
+
angle: 45,
|
|
33
|
+
enable: false
|
|
34
|
+
}
|
|
35
|
+
}
|
|
23
36
|
}
|
|
24
37
|
},
|
|
25
38
|
childrens: [
|
|
@@ -201,7 +201,7 @@ const NewsletterSettings = [
|
|
|
201
201
|
]
|
|
202
202
|
},
|
|
203
203
|
{
|
|
204
|
-
id: '
|
|
204
|
+
id: 'border',
|
|
205
205
|
type: 'border-v2',
|
|
206
206
|
devices: {
|
|
207
207
|
desktop: {
|
|
@@ -227,7 +227,7 @@ const NewsletterSettings = [
|
|
|
227
227
|
}
|
|
228
228
|
},
|
|
229
229
|
{
|
|
230
|
-
id: '
|
|
230
|
+
id: 'rounded',
|
|
231
231
|
type: 'corner-v2',
|
|
232
232
|
devices: {
|
|
233
233
|
desktop: {
|
|
@@ -253,12 +253,17 @@ const NewsletterSettings = [
|
|
|
253
253
|
}
|
|
254
254
|
},
|
|
255
255
|
{
|
|
256
|
-
id: '
|
|
256
|
+
id: 'boxShadow',
|
|
257
257
|
type: 'shadow-v2',
|
|
258
258
|
devices: {
|
|
259
259
|
desktop: {
|
|
260
260
|
default: {
|
|
261
|
-
|
|
261
|
+
type: 'shadow-2',
|
|
262
|
+
distance: '12px',
|
|
263
|
+
blur: '12px',
|
|
264
|
+
spread: '0px',
|
|
265
|
+
color: 'rgba(18, 18, 18, 0.2)',
|
|
266
|
+
angle: 45
|
|
262
267
|
}
|
|
263
268
|
}
|
|
264
269
|
},
|
|
@@ -270,8 +275,7 @@ const NewsletterSettings = [
|
|
|
270
275
|
blur: '12px',
|
|
271
276
|
spread: '0px',
|
|
272
277
|
color: 'rgba(18, 18, 18, 0.2)',
|
|
273
|
-
angle: 45
|
|
274
|
-
enable: true
|
|
278
|
+
angle: 45
|
|
275
279
|
}
|
|
276
280
|
}
|
|
277
281
|
}
|
|
@@ -129,7 +129,8 @@ const SettingUIV2 = [
|
|
|
129
129
|
en: 'Border'
|
|
130
130
|
},
|
|
131
131
|
setting: {
|
|
132
|
-
id: '
|
|
132
|
+
id: 'border',
|
|
133
|
+
state: 'normal'
|
|
133
134
|
}
|
|
134
135
|
},
|
|
135
136
|
{
|
|
@@ -137,7 +138,8 @@ const SettingUIV2 = [
|
|
|
137
138
|
en: 'Corner'
|
|
138
139
|
},
|
|
139
140
|
setting: {
|
|
140
|
-
id: '
|
|
141
|
+
id: 'rounded',
|
|
142
|
+
state: 'normal'
|
|
141
143
|
}
|
|
142
144
|
},
|
|
143
145
|
{
|
|
@@ -145,7 +147,52 @@ const SettingUIV2 = [
|
|
|
145
147
|
en: 'Shadow'
|
|
146
148
|
},
|
|
147
149
|
setting: {
|
|
148
|
-
id: '
|
|
150
|
+
id: 'boxShadow',
|
|
151
|
+
state: 'normal'
|
|
152
|
+
},
|
|
153
|
+
options: {
|
|
154
|
+
updateFields: [
|
|
155
|
+
{
|
|
156
|
+
field: 'enable',
|
|
157
|
+
settingId: 'hasBoxShadow',
|
|
158
|
+
state: 'normal'
|
|
159
|
+
}
|
|
160
|
+
]
|
|
161
|
+
},
|
|
162
|
+
controlChangeTrigger: {
|
|
163
|
+
settings: [
|
|
164
|
+
{
|
|
165
|
+
condition: `boxShadow.normal.enable === true`,
|
|
166
|
+
source: [
|
|
167
|
+
'boxShadow',
|
|
168
|
+
'hasBoxShadow'
|
|
169
|
+
],
|
|
170
|
+
action: {
|
|
171
|
+
controlId: 'hasBoxShadow',
|
|
172
|
+
groupType: 'advanced',
|
|
173
|
+
controlType: 'advanced',
|
|
174
|
+
state: 'normal',
|
|
175
|
+
newValue: true
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
condition: `boxShadow.normal.enable === false`,
|
|
180
|
+
source: [
|
|
181
|
+
'boxShadow',
|
|
182
|
+
'hasBoxShadow'
|
|
183
|
+
],
|
|
184
|
+
action: {
|
|
185
|
+
controlId: 'hasBoxShadow',
|
|
186
|
+
groupType: 'advanced',
|
|
187
|
+
controlType: 'advanced',
|
|
188
|
+
state: 'normal',
|
|
189
|
+
newValue: false
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
],
|
|
193
|
+
options: {
|
|
194
|
+
noRecordHistory: true
|
|
195
|
+
}
|
|
149
196
|
}
|
|
150
197
|
}
|
|
151
198
|
]
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { makeStyleResponsive } from '@gem-sdk/core';
|
|
1
|
+
import { DEVICES, makeStyleResponsive } from '@gem-sdk/core';
|
|
2
2
|
|
|
3
3
|
const getPlusIcon = (plusIcon)=>{
|
|
4
4
|
return plusIcon ?? `<svg
|
|
@@ -28,17 +28,11 @@ const getMinusIcon = (minusIcon)=>{
|
|
|
28
28
|
`;
|
|
29
29
|
};
|
|
30
30
|
const getIconWidth = (iconSizeCustom)=>{
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
if (
|
|
34
|
-
check = false;
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
return check ? makeStyleResponsive('w', iconSizeCustom, 'px') : makeStyleResponsive('w', {
|
|
38
|
-
desktop: `${(iconSizeCustom?.['desktop'])?.width}px`,
|
|
39
|
-
tablet: `${(iconSizeCustom?.['tablet'])?.width}px`,
|
|
40
|
-
mobile: `${(iconSizeCustom?.['mobile'])?.width}px`
|
|
31
|
+
if (!iconSizeCustom) return {};
|
|
32
|
+
DEVICES.forEach((device)=>{
|
|
33
|
+
if (!iconSizeCustom?.[device]) iconSizeCustom[device] = iconSizeCustom['desktop'] || undefined;
|
|
41
34
|
});
|
|
35
|
+
return makeStyleResponsive('w', iconSizeCustom);
|
|
42
36
|
};
|
|
43
37
|
|
|
44
38
|
export { getIconWidth, getMinusIcon, getPlusIcon };
|
|
@@ -110,7 +110,9 @@ const ProductQuantity = (props)=>{
|
|
|
110
110
|
const iconWrapperClass = createClass({
|
|
111
111
|
...getIconWrapperClasses()
|
|
112
112
|
});
|
|
113
|
-
const iconWidth =
|
|
113
|
+
const iconWidth = createStyle({
|
|
114
|
+
...getIconWidth(iconSizeCustom)
|
|
115
|
+
});
|
|
114
116
|
return /*#__PURE__*/ jsx("div", {
|
|
115
117
|
ref: ref,
|
|
116
118
|
...containerAttrs,
|
|
@@ -52,7 +52,7 @@ const productFeatureImageSetting = [
|
|
|
52
52
|
},
|
|
53
53
|
{
|
|
54
54
|
id: 'zoom',
|
|
55
|
-
type: '
|
|
55
|
+
type: 'input:slider',
|
|
56
56
|
label: 'Zoom Value',
|
|
57
57
|
min: 100,
|
|
58
58
|
max: 200,
|
|
@@ -61,7 +61,8 @@ const productFeatureImageSetting = [
|
|
|
61
61
|
units: [
|
|
62
62
|
'%'
|
|
63
63
|
],
|
|
64
|
-
useOnlyUnitInit: true
|
|
64
|
+
useOnlyUnitInit: true,
|
|
65
|
+
isNumber: true
|
|
65
66
|
},
|
|
66
67
|
{
|
|
67
68
|
id: 'otherImage',
|
|
@@ -167,13 +168,15 @@ const productFeatureImageSetting = [
|
|
|
167
168
|
},
|
|
168
169
|
{
|
|
169
170
|
id: 'ftAnimationSpeed',
|
|
170
|
-
type: '
|
|
171
|
+
type: 'input:slider',
|
|
171
172
|
label: 'Speed (s)',
|
|
172
173
|
hide: true,
|
|
173
174
|
min: 0,
|
|
174
175
|
max: 60,
|
|
175
176
|
step: 1,
|
|
176
|
-
default: 1
|
|
177
|
+
default: 1,
|
|
178
|
+
useOnlyUnitInit: true,
|
|
179
|
+
isNumber: true
|
|
177
180
|
},
|
|
178
181
|
{
|
|
179
182
|
id: 'ftArrowIcon',
|
|
@@ -65,7 +65,7 @@ const productGalleryImageSetting = [
|
|
|
65
65
|
},
|
|
66
66
|
{
|
|
67
67
|
id: 'galleryZoom',
|
|
68
|
-
type: '
|
|
68
|
+
type: 'input:slider',
|
|
69
69
|
label: 'Zoom Value',
|
|
70
70
|
min: 100,
|
|
71
71
|
max: 200,
|
|
@@ -74,7 +74,8 @@ const productGalleryImageSetting = [
|
|
|
74
74
|
units: [
|
|
75
75
|
'%'
|
|
76
76
|
],
|
|
77
|
-
useOnlyUnitInit: true
|
|
77
|
+
useOnlyUnitInit: true,
|
|
78
|
+
isNumber: true
|
|
78
79
|
},
|
|
79
80
|
{
|
|
80
81
|
id: 'clickOpenLightBox',
|
|
@@ -160,7 +161,7 @@ const productGalleryImageSetting = [
|
|
|
160
161
|
},
|
|
161
162
|
{
|
|
162
163
|
id: 'speed',
|
|
163
|
-
type: '
|
|
164
|
+
type: 'input:slider',
|
|
164
165
|
label: 'Speed (s)',
|
|
165
166
|
hide: true,
|
|
166
167
|
min: 0,
|
|
@@ -6,7 +6,7 @@ const ProductQuantitySettings = [
|
|
|
6
6
|
id: 'updatePrice',
|
|
7
7
|
label: 'Update price',
|
|
8
8
|
type: 'toggle',
|
|
9
|
-
default:
|
|
9
|
+
default: true
|
|
10
10
|
},
|
|
11
11
|
{
|
|
12
12
|
id: 'qtyStyle',
|
|
@@ -196,10 +196,11 @@ const ProductQuantitySettings = [
|
|
|
196
196
|
{
|
|
197
197
|
id: 'iconSizeCustom',
|
|
198
198
|
type: 'input:stepper',
|
|
199
|
+
includeUnit: 'px',
|
|
199
200
|
min: 1,
|
|
200
201
|
devices: {
|
|
201
202
|
desktop: {
|
|
202
|
-
default:
|
|
203
|
+
default: '16px'
|
|
203
204
|
}
|
|
204
205
|
}
|
|
205
206
|
}
|
|
@@ -304,28 +305,29 @@ const ProductQuantitySettings = [
|
|
|
304
305
|
id: 'inputBackgroundColor',
|
|
305
306
|
type: 'color-picker-v2',
|
|
306
307
|
label: 'Background Color',
|
|
307
|
-
default: {
|
|
308
|
-
normal: 'bg-3'
|
|
309
|
-
},
|
|
310
308
|
state: {
|
|
311
309
|
hover: true,
|
|
312
310
|
normal: true
|
|
313
311
|
},
|
|
312
|
+
compoDefaultValue: {
|
|
313
|
+
normal: 'bg-3',
|
|
314
|
+
hover: 'highlight'
|
|
315
|
+
},
|
|
314
316
|
enableGradient: true
|
|
315
317
|
},
|
|
316
318
|
{
|
|
317
319
|
id: 'buttonBackgroundColor',
|
|
318
320
|
type: 'color-picker-v2',
|
|
319
321
|
label: 'Button Background Color',
|
|
320
|
-
default: {
|
|
321
|
-
normal: 'brand',
|
|
322
|
-
hover: 'highlight'
|
|
323
|
-
},
|
|
324
322
|
state: {
|
|
325
323
|
hover: true,
|
|
326
324
|
normal: true
|
|
327
325
|
},
|
|
328
|
-
enableGradient: true
|
|
326
|
+
enableGradient: true,
|
|
327
|
+
compoDefaultValue: {
|
|
328
|
+
normal: 'brand',
|
|
329
|
+
hover: 'highlight'
|
|
330
|
+
}
|
|
329
331
|
},
|
|
330
332
|
{
|
|
331
333
|
id: 'iconColor',
|
|
@@ -354,7 +356,7 @@ const ProductQuantitySettings = [
|
|
|
354
356
|
border: 'solid',
|
|
355
357
|
borderWidth: '1px',
|
|
356
358
|
width: '1px 1px 1px 1px',
|
|
357
|
-
color: '
|
|
359
|
+
color: 'line-1',
|
|
358
360
|
isCustom: true
|
|
359
361
|
},
|
|
360
362
|
hover: {
|
|
@@ -362,7 +364,6 @@ const ProductQuantitySettings = [
|
|
|
362
364
|
border: 'none',
|
|
363
365
|
borderWidth: '1px',
|
|
364
366
|
width: '1px 1px 1px 1px',
|
|
365
|
-
color: '#121212',
|
|
366
367
|
isCustom: true
|
|
367
368
|
}
|
|
368
369
|
}
|
|
@@ -498,7 +499,7 @@ const ProductQuantitySettings = [
|
|
|
498
499
|
id: 'dividerColor',
|
|
499
500
|
type: 'color-picker-v2',
|
|
500
501
|
label: 'Divider Color',
|
|
501
|
-
|
|
502
|
+
compoDefaultValue: {
|
|
502
503
|
desktop: {
|
|
503
504
|
default: {
|
|
504
505
|
normal: '#121212'
|
|
@@ -363,12 +363,14 @@ const config = {
|
|
|
363
363
|
},
|
|
364
364
|
{
|
|
365
365
|
id: 'iconDimension',
|
|
366
|
-
type: '
|
|
366
|
+
type: 'input:slider',
|
|
367
367
|
label: 'Size',
|
|
368
368
|
hide: true,
|
|
369
369
|
min: 0,
|
|
370
370
|
max: 100,
|
|
371
371
|
step: 1,
|
|
372
|
+
useOnlyUnitInit: true,
|
|
373
|
+
isNumber: true,
|
|
372
374
|
units: [
|
|
373
375
|
'px',
|
|
374
376
|
'em',
|
|
@@ -30,13 +30,15 @@ const settings = {
|
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
32
|
id: 'hoverOpacity',
|
|
33
|
-
type: '
|
|
33
|
+
type: 'input:slider',
|
|
34
34
|
label: 'Hover Opacity',
|
|
35
35
|
units: [
|
|
36
36
|
'%'
|
|
37
37
|
],
|
|
38
38
|
min: 0,
|
|
39
|
-
max: 100
|
|
39
|
+
max: 100,
|
|
40
|
+
useOnlyUnitInit: true,
|
|
41
|
+
isNumber: true
|
|
40
42
|
}
|
|
41
43
|
]
|
|
42
44
|
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1605,9 +1605,9 @@ type NewsLetterSetting = {
|
|
|
1605
1605
|
};
|
|
1606
1606
|
type NewsLetterStyle = {
|
|
1607
1607
|
globalSize?: ObjectDevices$1<SizeSettingGlobal>;
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1608
|
+
border?: ObjectDevices$1<Border>;
|
|
1609
|
+
rounded?: ObjectDevices$1<CornerRadius>;
|
|
1610
|
+
boxShadow?: ObjectDevices$1<ShadowProps$1>;
|
|
1611
1611
|
};
|
|
1612
1612
|
type NewsletterProps = BasePropsWrap<NewsLetterSetting, NewsLetterStyle> & {
|
|
1613
1613
|
children?: React.ReactNode;
|
|
@@ -4050,7 +4050,7 @@ type ProductQuantityProps = BaseProps<{
|
|
|
4050
4050
|
buttonBackgroundColor?: StateProp<ColorValueType$1>;
|
|
4051
4051
|
iconColor?: StateProp<ColorValueType$1>;
|
|
4052
4052
|
borderBtn?: ObjectDevices$1<StateProp<Border>>;
|
|
4053
|
-
iconSizeCustom?: ObjectDevices$1<
|
|
4053
|
+
iconSizeCustom?: ObjectDevices$1<string>;
|
|
4054
4054
|
corner?: ObjectDevices$1<StateProp<CornerRadius>>;
|
|
4055
4055
|
shapeShadow?: ObjectDevices$1<StateProp<ShadowProps$1>>;
|
|
4056
4056
|
buttonBoxShadow?: ObjectDevices$1<StateProp<ShadowProps$1>>;
|
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.432",
|
|
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.431",
|
|
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"
|