@gem-sdk/components 2.0.0-dev.456 → 2.0.0-dev.458
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/setting/configs/settings.js +2 -1
- package/dist/cjs/code/components/CSSCode.js +1 -0
- package/dist/cjs/code/setting/config/setting.js +38 -2
- package/dist/cjs/code/setting/config/uiV2.js +30 -8
- package/dist/cjs/coupon/common/classes.js +16 -2
- package/dist/cjs/coupon/common/index.js +2 -2
- package/dist/cjs/coupon/common/styles.js +44 -26
- package/dist/cjs/coupon/components/Coupon.js +3 -6
- package/dist/cjs/coupon/components/Coupon.liquid.js +4 -7
- package/dist/cjs/coupon/setting/config/settings.js +198 -124
- package/dist/cjs/coupon/setting/config/uiV2.js +349 -142
- package/dist/cjs/product/components/FileUpload/components/config/uiV2.js +15 -0
- package/dist/esm/button/setting/configs/settings.js +2 -1
- package/dist/esm/code/components/CSSCode.js +1 -0
- package/dist/esm/code/setting/config/setting.js +38 -2
- package/dist/esm/code/setting/config/uiV2.js +30 -8
- package/dist/esm/coupon/common/classes.js +16 -2
- package/dist/esm/coupon/common/index.js +2 -2
- package/dist/esm/coupon/common/styles.js +45 -26
- package/dist/esm/coupon/components/Coupon.js +5 -8
- package/dist/esm/coupon/components/Coupon.liquid.js +6 -9
- package/dist/esm/coupon/setting/config/settings.js +198 -124
- package/dist/esm/coupon/setting/config/uiV2.js +349 -142
- package/dist/esm/product/components/FileUpload/components/config/uiV2.js +15 -0
- package/dist/types/index.d.ts +4 -1
- package/package.json +1 -1
|
@@ -50,7 +50,7 @@ const CouponSettings = [
|
|
|
50
50
|
id: 'iconVisible',
|
|
51
51
|
label: 'Icon Visible',
|
|
52
52
|
type: 'toggle',
|
|
53
|
-
default:
|
|
53
|
+
default: true
|
|
54
54
|
},
|
|
55
55
|
{
|
|
56
56
|
id: 'iconSvg',
|
|
@@ -126,50 +126,86 @@ const CouponSettings = [
|
|
|
126
126
|
id: 'style',
|
|
127
127
|
controls: [
|
|
128
128
|
{
|
|
129
|
-
id: '
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
default: {
|
|
134
|
-
normal: {
|
|
135
|
-
borderType: 'none',
|
|
136
|
-
border: 'none',
|
|
137
|
-
isCustom: false,
|
|
138
|
-
borderWidth: '1px',
|
|
139
|
-
width: '1px 1px 1px 1px'
|
|
140
|
-
},
|
|
141
|
-
hover: {
|
|
142
|
-
isCustom: false,
|
|
143
|
-
borderType: 'none',
|
|
144
|
-
border: 'none',
|
|
145
|
-
borderWidth: '1px',
|
|
146
|
-
width: '1px 1px 1px 1px'
|
|
147
|
-
}
|
|
148
|
-
},
|
|
149
|
-
state: {
|
|
150
|
-
hover: true,
|
|
151
|
-
normal: true,
|
|
152
|
-
active: true
|
|
153
|
-
}
|
|
129
|
+
id: 'enableTextStyle',
|
|
130
|
+
label: '',
|
|
131
|
+
type: 'toggle',
|
|
132
|
+
default: true
|
|
154
133
|
},
|
|
134
|
+
// {
|
|
135
|
+
// id: 'borderBtn',
|
|
136
|
+
// type: 'border',
|
|
137
|
+
// label: 'Border',
|
|
138
|
+
// emptyOnClear: true,
|
|
139
|
+
// default: {
|
|
140
|
+
// normal: {
|
|
141
|
+
// borderType: 'none',
|
|
142
|
+
// border: 'none',
|
|
143
|
+
// isCustom: false,
|
|
144
|
+
// borderWidth: '1px',
|
|
145
|
+
// width: '1px 1px 1px 1px',
|
|
146
|
+
// },
|
|
147
|
+
// hover: {
|
|
148
|
+
// isCustom: false,
|
|
149
|
+
// borderType: 'none',
|
|
150
|
+
// border: 'none',
|
|
151
|
+
// borderWidth: '1px',
|
|
152
|
+
// width: '1px 1px 1px 1px',
|
|
153
|
+
// },
|
|
154
|
+
// // active: {
|
|
155
|
+
// // isCustom: false,
|
|
156
|
+
// // borderType: 'none',
|
|
157
|
+
// // border: 'none',
|
|
158
|
+
// // borderWidth: '1px',
|
|
159
|
+
// // width: '1px 1px 1px 1px',
|
|
160
|
+
// // },
|
|
161
|
+
// },
|
|
162
|
+
// state: {
|
|
163
|
+
// hover: true,
|
|
164
|
+
// normal: true,
|
|
165
|
+
// active: true,
|
|
166
|
+
// },
|
|
167
|
+
// },
|
|
168
|
+
// {
|
|
169
|
+
// id: 'backgroundColor',
|
|
170
|
+
// type: 'background-color-picker',
|
|
171
|
+
// label: 'Background Color',
|
|
172
|
+
// default: {
|
|
173
|
+
// normal: 'brand',
|
|
174
|
+
// hover: 'highlight',
|
|
175
|
+
// active: '#00A042',
|
|
176
|
+
// },
|
|
177
|
+
// state: {
|
|
178
|
+
// hover: true,
|
|
179
|
+
// normal: true,
|
|
180
|
+
// active: true,
|
|
181
|
+
// },
|
|
182
|
+
// },
|
|
155
183
|
{
|
|
156
|
-
id: '
|
|
157
|
-
type: '
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
184
|
+
id: 'backgroundColorV2',
|
|
185
|
+
type: 'color-picker-v2',
|
|
186
|
+
devices: {
|
|
187
|
+
desktop: {
|
|
188
|
+
default: {
|
|
189
|
+
normal: 'brand',
|
|
190
|
+
hover: 'highlight',
|
|
191
|
+
active: '#00A042'
|
|
192
|
+
}
|
|
193
|
+
}
|
|
163
194
|
},
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
195
|
+
compoDefaultValue: {
|
|
196
|
+
desktop: {
|
|
197
|
+
default: {
|
|
198
|
+
normal: 'brand',
|
|
199
|
+
hover: 'highlight',
|
|
200
|
+
active: '#00A042'
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
enableGradient: true
|
|
169
205
|
},
|
|
170
206
|
{
|
|
171
207
|
id: 'textColor',
|
|
172
|
-
type: '
|
|
208
|
+
type: 'color-picker-v2',
|
|
173
209
|
label: 'Text Color',
|
|
174
210
|
default: {
|
|
175
211
|
normal: 'text-3'
|
|
@@ -181,56 +217,25 @@ const CouponSettings = [
|
|
|
181
217
|
}
|
|
182
218
|
},
|
|
183
219
|
{
|
|
184
|
-
id: '
|
|
185
|
-
type: '
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
normal: true,
|
|
193
|
-
hover: true
|
|
194
|
-
}
|
|
195
|
-
},
|
|
196
|
-
{
|
|
197
|
-
id: 'boxShadowBtn',
|
|
198
|
-
type: 'boxShadow',
|
|
199
|
-
label: 'Button Shadow',
|
|
200
|
-
hideOnState: {
|
|
201
|
-
normal: true,
|
|
202
|
-
hover: true,
|
|
203
|
-
active: true
|
|
204
|
-
},
|
|
205
|
-
default: {
|
|
206
|
-
normal: {
|
|
207
|
-
type: 'shadow-1',
|
|
208
|
-
distance: '4px',
|
|
209
|
-
blur: '12px',
|
|
210
|
-
spread: '0px',
|
|
211
|
-
color: 'rgba(0, 0, 0, 0.20)',
|
|
212
|
-
angle: 90
|
|
220
|
+
id: 'textColorHover',
|
|
221
|
+
type: 'color-picker-v2',
|
|
222
|
+
devices: {
|
|
223
|
+
desktop: {
|
|
224
|
+
default: {
|
|
225
|
+
hover: 'text-3',
|
|
226
|
+
active: 'text-3'
|
|
227
|
+
}
|
|
213
228
|
}
|
|
214
229
|
},
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
{
|
|
222
|
-
id: 'roundedBtn',
|
|
223
|
-
type: 'radius-preset',
|
|
224
|
-
label: 'Border Radius',
|
|
225
|
-
default: {
|
|
226
|
-
normal: {
|
|
227
|
-
radiusType: 'small'
|
|
230
|
+
compoDefaultValue: {
|
|
231
|
+
desktop: {
|
|
232
|
+
default: {
|
|
233
|
+
hover: 'text-3',
|
|
234
|
+
active: 'text-3'
|
|
235
|
+
}
|
|
228
236
|
}
|
|
229
237
|
},
|
|
230
|
-
|
|
231
|
-
hover: true,
|
|
232
|
-
normal: true
|
|
233
|
-
}
|
|
238
|
+
enableGradient: true
|
|
234
239
|
},
|
|
235
240
|
{
|
|
236
241
|
id: 'align',
|
|
@@ -266,9 +271,6 @@ const CouponSettings = [
|
|
|
266
271
|
default: {
|
|
267
272
|
type: 'paragraph-1'
|
|
268
273
|
},
|
|
269
|
-
hiddenSetting: {
|
|
270
|
-
color: true
|
|
271
|
-
},
|
|
272
274
|
ignoreReRender: true
|
|
273
275
|
},
|
|
274
276
|
{
|
|
@@ -357,10 +359,12 @@ const CouponSettings = [
|
|
|
357
359
|
},
|
|
358
360
|
{
|
|
359
361
|
id: 'iconSpacing',
|
|
360
|
-
type: 'input:
|
|
362
|
+
type: 'input:slider',
|
|
361
363
|
units: [
|
|
362
364
|
'px'
|
|
363
365
|
],
|
|
366
|
+
step: 1,
|
|
367
|
+
max: 40,
|
|
364
368
|
devices: {
|
|
365
369
|
desktop: {
|
|
366
370
|
default: '8px'
|
|
@@ -377,43 +381,14 @@ const CouponSettings = [
|
|
|
377
381
|
height: 'Auto',
|
|
378
382
|
padding: {
|
|
379
383
|
type: 'medium',
|
|
380
|
-
top: '
|
|
381
|
-
bottom: '
|
|
384
|
+
top: '12px',
|
|
385
|
+
bottom: '12px',
|
|
382
386
|
left: '24px',
|
|
383
387
|
right: '24px'
|
|
384
388
|
}
|
|
385
389
|
}
|
|
386
390
|
}
|
|
387
391
|
},
|
|
388
|
-
settingConfig: {
|
|
389
|
-
width: {
|
|
390
|
-
displayOptions: [
|
|
391
|
-
'full',
|
|
392
|
-
'auto',
|
|
393
|
-
'small',
|
|
394
|
-
'large',
|
|
395
|
-
'medium'
|
|
396
|
-
],
|
|
397
|
-
sizeConfig: {
|
|
398
|
-
small: '100px',
|
|
399
|
-
medium: '116px',
|
|
400
|
-
large: '132px'
|
|
401
|
-
}
|
|
402
|
-
},
|
|
403
|
-
height: {
|
|
404
|
-
displayOptions: [
|
|
405
|
-
'auto',
|
|
406
|
-
'small',
|
|
407
|
-
'large',
|
|
408
|
-
'medium'
|
|
409
|
-
],
|
|
410
|
-
sizeConfig: {
|
|
411
|
-
small: '28px',
|
|
412
|
-
medium: '36px',
|
|
413
|
-
large: '44px'
|
|
414
|
-
}
|
|
415
|
-
}
|
|
416
|
-
},
|
|
417
392
|
hiddenSettings: [
|
|
418
393
|
'shape',
|
|
419
394
|
'gap'
|
|
@@ -448,6 +423,105 @@ const CouponSettings = [
|
|
|
448
423
|
default: 'left'
|
|
449
424
|
}
|
|
450
425
|
}
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
id: 'borderBtnV2',
|
|
429
|
+
type: 'border-v2',
|
|
430
|
+
devices: {
|
|
431
|
+
desktop: {
|
|
432
|
+
default: {
|
|
433
|
+
normal: {
|
|
434
|
+
borderType: 'none',
|
|
435
|
+
border: 'none',
|
|
436
|
+
borderWidth: '1px',
|
|
437
|
+
width: '1px 1px 1px 1px',
|
|
438
|
+
color: '#121212',
|
|
439
|
+
isCustom: true
|
|
440
|
+
},
|
|
441
|
+
hover: {
|
|
442
|
+
borderType: 'none',
|
|
443
|
+
border: 'none',
|
|
444
|
+
borderWidth: '1px',
|
|
445
|
+
width: '1px 1px 1px 1px',
|
|
446
|
+
color: '#121212',
|
|
447
|
+
isCustom: true
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
},
|
|
452
|
+
compoDefaultValue: {
|
|
453
|
+
desktop: {
|
|
454
|
+
default: {
|
|
455
|
+
normal: {
|
|
456
|
+
border: 'solid',
|
|
457
|
+
color: '#121212',
|
|
458
|
+
width: '1px',
|
|
459
|
+
borderWidth: '1px'
|
|
460
|
+
},
|
|
461
|
+
hover: {
|
|
462
|
+
border: 'solid',
|
|
463
|
+
color: '#121212',
|
|
464
|
+
width: '1px',
|
|
465
|
+
borderWidth: '1px'
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
id: 'roundedBtnV2',
|
|
473
|
+
type: 'corner-v2',
|
|
474
|
+
devices: {
|
|
475
|
+
desktop: {
|
|
476
|
+
default: {
|
|
477
|
+
normal: {
|
|
478
|
+
btrr: '0px',
|
|
479
|
+
bblr: '0px',
|
|
480
|
+
bbrr: '0px',
|
|
481
|
+
btlr: '0px',
|
|
482
|
+
radiusType: 'none'
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
},
|
|
487
|
+
compoDefaultValue: {
|
|
488
|
+
desktop: {
|
|
489
|
+
default: {
|
|
490
|
+
normal: {
|
|
491
|
+
btrr: '8px',
|
|
492
|
+
bblr: '8px',
|
|
493
|
+
bbrr: '8px',
|
|
494
|
+
btlr: '8px',
|
|
495
|
+
radiusType: 'rounded'
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
},
|
|
501
|
+
{
|
|
502
|
+
id: 'boxShadowBtnV2',
|
|
503
|
+
type: 'shadow-v2',
|
|
504
|
+
devices: {
|
|
505
|
+
desktop: {
|
|
506
|
+
default: {
|
|
507
|
+
normal: {}
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
},
|
|
511
|
+
compoDefaultValue: {
|
|
512
|
+
desktop: {
|
|
513
|
+
default: {
|
|
514
|
+
normal: {
|
|
515
|
+
type: 'shadow-1',
|
|
516
|
+
distance: '4px',
|
|
517
|
+
blur: '4px',
|
|
518
|
+
spread: '0px',
|
|
519
|
+
color: '#121212',
|
|
520
|
+
angle: 45
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
}
|
|
451
525
|
}
|
|
452
526
|
]
|
|
453
527
|
}
|
|
@@ -614,10 +688,10 @@ const CouponPresets = [
|
|
|
614
688
|
rounded: {
|
|
615
689
|
desktop: {
|
|
616
690
|
normal: {
|
|
617
|
-
btrr: '
|
|
618
|
-
bblr: '
|
|
619
|
-
bbrr: '
|
|
620
|
-
btlr: '
|
|
691
|
+
btrr: '0px',
|
|
692
|
+
bblr: '0px',
|
|
693
|
+
bbrr: '0px',
|
|
694
|
+
btlr: '0px',
|
|
621
695
|
radiusType: 'custom'
|
|
622
696
|
}
|
|
623
697
|
}
|