@gem-sdk/components 2.0.0-dev.703 → 2.0.0-dev.704

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.
Files changed (32) hide show
  1. package/dist/cjs/article/setting/configs/ArticleReadMore/settings.js +86 -134
  2. package/dist/cjs/button/components/common/helpers.js +2 -9
  3. package/dist/cjs/button/components/common/styles.js +14 -81
  4. package/dist/cjs/button/setting/configs/settings.js +85 -133
  5. package/dist/cjs/coupon/common/classes.js +3 -12
  6. package/dist/cjs/coupon/common/styles.js +7 -17
  7. package/dist/cjs/coupon/setting/config/settings.js +60 -100
  8. package/dist/cjs/form/setting/submit-button/configs/settings.js +103 -250
  9. package/dist/cjs/product/components/DynamicCheckout/common/styles.js +12 -12
  10. package/dist/cjs/product/components/ProductButton/common/styles.js +4 -14
  11. package/dist/cjs/product/components/ProductImagesV2/common/common.js +1 -1
  12. package/dist/cjs/product/setting/dynamic-checkout/configs/settings.js +86 -134
  13. package/dist/cjs/product/setting/product-button/configs/settings.js +142 -222
  14. package/dist/cjs/product/setting/product-view-more/configs/settings.js +100 -148
  15. package/dist/cjs/third-party/setting/Selleasy/index.js +5 -5
  16. package/dist/esm/article/setting/configs/ArticleReadMore/settings.js +86 -134
  17. package/dist/esm/button/components/common/helpers.js +2 -9
  18. package/dist/esm/button/components/common/styles.js +16 -81
  19. package/dist/esm/button/setting/configs/settings.js +85 -133
  20. package/dist/esm/coupon/common/classes.js +3 -12
  21. package/dist/esm/coupon/common/styles.js +7 -17
  22. package/dist/esm/coupon/setting/config/settings.js +60 -100
  23. package/dist/esm/form/setting/submit-button/configs/settings.js +103 -250
  24. package/dist/esm/product/components/DynamicCheckout/common/styles.js +12 -12
  25. package/dist/esm/product/components/ProductButton/common/styles.js +4 -14
  26. package/dist/esm/product/components/ProductImagesV2/common/common.js +1 -1
  27. package/dist/esm/product/setting/dynamic-checkout/configs/settings.js +86 -134
  28. package/dist/esm/product/setting/product-button/configs/settings.js +142 -222
  29. package/dist/esm/product/setting/product-view-more/configs/settings.js +100 -148
  30. package/dist/esm/third-party/setting/Selleasy/index.js +5 -5
  31. package/dist/types/index.d.ts +23 -23
  32. package/package.json +2 -2
@@ -183,23 +183,15 @@ const CouponSettings = [
183
183
  {
184
184
  id: 'backgroundColorV2',
185
185
  type: 'color-picker-v2',
186
- devices: {
187
- desktop: {
188
- default: {
189
- normal: 'brand',
190
- hover: 'highlight',
191
- active: '#2C934E'
192
- }
193
- }
186
+ default: {
187
+ normal: 'brand',
188
+ hover: 'highlight',
189
+ active: '#2C934E'
194
190
  },
195
191
  compoDefaultValue: {
196
- desktop: {
197
- default: {
198
- normal: 'brand',
199
- hover: 'highlight',
200
- active: '#2C934E'
201
- }
202
- }
192
+ normal: 'brand',
193
+ hover: 'highlight',
194
+ active: '#2C934E'
203
195
  }
204
196
  },
205
197
  {
@@ -218,18 +210,10 @@ const CouponSettings = [
218
210
  {
219
211
  id: 'textColorHover',
220
212
  type: 'color-picker-v2',
221
- devices: {
222
- desktop: {
223
- default: {}
224
- }
225
- },
213
+ default: {},
226
214
  compoDefaultValue: {
227
- desktop: {
228
- default: {
229
- hover: 'text-3',
230
- active: 'text-3'
231
- }
232
- }
215
+ hover: 'text-3',
216
+ active: 'text-3'
233
217
  }
234
218
  },
235
219
  {
@@ -426,100 +410,76 @@ const CouponSettings = [
426
410
  {
427
411
  id: 'borderBtnV2',
428
412
  type: 'border-v2',
429
- devices: {
430
- desktop: {
431
- default: {
432
- normal: {
433
- borderType: 'none',
434
- border: 'none',
435
- borderWidth: '1px',
436
- width: '1px 1px 1px 1px',
437
- color: '#121212',
438
- isCustom: true
439
- },
440
- hover: {
441
- borderType: 'none',
442
- border: 'none',
443
- borderWidth: '1px',
444
- width: '1px 1px 1px 1px',
445
- color: '#121212',
446
- isCustom: true
447
- }
448
- }
413
+ default: {
414
+ normal: {
415
+ borderType: 'none',
416
+ border: 'none',
417
+ borderWidth: '1px',
418
+ width: '1px 1px 1px 1px',
419
+ color: '#121212',
420
+ isCustom: true
421
+ },
422
+ hover: {
423
+ borderType: 'none',
424
+ border: 'none',
425
+ borderWidth: '1px',
426
+ width: '1px 1px 1px 1px',
427
+ color: '#121212',
428
+ isCustom: true
449
429
  }
450
430
  },
451
431
  compoDefaultValue: {
452
- desktop: {
453
- default: {
454
- normal: {
455
- border: 'solid',
456
- color: '#121212',
457
- width: '1px',
458
- borderWidth: '1px'
459
- },
460
- hover: {
461
- border: 'solid',
462
- color: '#121212',
463
- width: '1px',
464
- borderWidth: '1px'
465
- }
466
- }
432
+ normal: {
433
+ border: 'solid',
434
+ color: '#121212',
435
+ width: '1px',
436
+ borderWidth: '1px'
437
+ },
438
+ hover: {
439
+ border: 'solid',
440
+ color: '#121212',
441
+ width: '1px',
442
+ borderWidth: '1px'
467
443
  }
468
444
  }
469
445
  },
470
446
  {
471
447
  id: 'roundedBtnV2',
472
448
  type: 'corner-v2',
473
- devices: {
474
- desktop: {
475
- default: {
476
- normal: {
477
- btrr: '0px',
478
- bblr: '0px',
479
- bbrr: '0px',
480
- btlr: '0px',
481
- radiusType: 'none'
482
- }
483
- }
449
+ default: {
450
+ normal: {
451
+ btrr: '0px',
452
+ bblr: '0px',
453
+ bbrr: '0px',
454
+ btlr: '0px',
455
+ radiusType: 'none'
484
456
  }
485
457
  },
486
458
  compoDefaultValue: {
487
- desktop: {
488
- default: {
489
- normal: {
490
- btrr: '8px',
491
- bblr: '8px',
492
- bbrr: '8px',
493
- btlr: '8px',
494
- radiusType: 'rounded'
495
- }
496
- }
459
+ normal: {
460
+ btrr: '8px',
461
+ bblr: '8px',
462
+ bbrr: '8px',
463
+ btlr: '8px',
464
+ radiusType: 'rounded'
497
465
  }
498
466
  }
499
467
  },
500
468
  {
501
469
  id: 'boxShadowBtnV2',
502
470
  type: 'shadow-v2',
503
- devices: {
504
- desktop: {
505
- default: {
506
- normal: {}
507
- }
508
- }
471
+ default: {
472
+ normal: {}
509
473
  },
510
474
  compoDefaultValue: {
511
- desktop: {
512
- default: {
513
- normal: {
514
- type: 'shadow-1',
515
- distance: '4px',
516
- blur: '4px',
517
- spread: '0px',
518
- color: 'rgba(18, 18, 18, 0.2)',
519
- angle: 45,
520
- enable: true
521
- }
522
- }
475
+ normal: {
476
+ type: 'shadow-1',
477
+ distance: '4px',
478
+ blur: '4px',
479
+ spread: '0px',
480
+ color: 'rgba(18, 18, 18, 0.2)',
481
+ angle: 45,
482
+ enable: true
523
483
  }
524
484
  }
525
485
  }
@@ -100,252 +100,116 @@ const SubmitButtonSettings = [
100
100
  {
101
101
  id: 'borderBtnV2',
102
102
  type: 'border-v2',
103
- devices: {
104
- desktop: {
105
- default: {
106
- normal: {
107
- borderType: 'none',
108
- border: 'none',
109
- borderWidth: '1px',
110
- width: '1px 1px 1px 1px',
111
- color: '#121212',
112
- isCustom: true
113
- },
114
- hover: {
115
- borderType: 'none',
116
- border: 'none',
117
- borderWidth: '1px',
118
- width: '1px 1px 1px 1px',
119
- color: '#121212',
120
- isCustom: true
121
- }
122
- }
103
+ default: {
104
+ normal: {
105
+ borderType: 'none',
106
+ border: 'none',
107
+ borderWidth: '1px',
108
+ width: '1px 1px 1px 1px',
109
+ color: '#121212',
110
+ isCustom: true
111
+ },
112
+ hover: {
113
+ borderType: 'none',
114
+ border: 'none',
115
+ borderWidth: '1px',
116
+ width: '1px 1px 1px 1px',
117
+ color: '#121212',
118
+ isCustom: true
123
119
  }
124
120
  },
125
121
  compoDefaultValue: {
126
- desktop: {
127
- default: {
128
- normal: {
129
- border: 'solid',
130
- color: '#121212',
131
- width: '1px',
132
- borderWidth: '1px'
133
- },
134
- hover: {
135
- border: 'solid',
136
- color: '#121212',
137
- width: '1px',
138
- borderWidth: '1px'
139
- }
140
- }
141
- },
142
- tablet: {
143
- default: {
144
- normal: {
145
- border: 'solid',
146
- color: '#121212',
147
- width: '1px',
148
- borderWidth: '1px'
149
- },
150
- hover: {
151
- border: 'solid',
152
- color: '#121212',
153
- width: '1px',
154
- borderWidth: '1px'
155
- }
156
- }
122
+ normal: {
123
+ border: 'solid',
124
+ color: '#121212',
125
+ width: '1px',
126
+ borderWidth: '1px'
157
127
  },
158
- mobile: {
159
- default: {
160
- normal: {
161
- border: 'solid',
162
- color: '#121212',
163
- width: '1px',
164
- borderWidth: '1px'
165
- },
166
- hover: {
167
- border: 'solid',
168
- color: '#121212',
169
- width: '1px',
170
- borderWidth: '1px'
171
- }
172
- }
128
+ hover: {
129
+ border: 'solid',
130
+ color: '#121212',
131
+ width: '1px',
132
+ borderWidth: '1px'
173
133
  }
174
134
  }
175
135
  },
176
136
  {
177
137
  id: 'roundedBtnV2',
178
138
  type: 'corner-v2',
179
- devices: {
180
- desktop: {
181
- default: {
182
- normal: {
183
- btrr: '0px',
184
- bblr: '0px',
185
- bbrr: '0px',
186
- btlr: '0px',
187
- radiusType: 'none'
188
- },
189
- hover: {
190
- btrr: '0px',
191
- bblr: '0px',
192
- bbrr: '0px',
193
- btlr: '0px',
194
- radiusType: 'none'
195
- }
196
- }
139
+ default: {
140
+ normal: {
141
+ btrr: '0px',
142
+ bblr: '0px',
143
+ bbrr: '0px',
144
+ btlr: '0px',
145
+ radiusType: 'none'
146
+ },
147
+ hover: {
148
+ btrr: '0px',
149
+ bblr: '0px',
150
+ bbrr: '0px',
151
+ btlr: '0px',
152
+ radiusType: 'none'
197
153
  }
198
154
  },
199
155
  compoDefaultValue: {
200
- desktop: {
201
- default: {
202
- normal: {
203
- btrr: '8px',
204
- bblr: '8px',
205
- bbrr: '8px',
206
- btlr: '8px',
207
- radiusType: 'rounded'
208
- },
209
- hover: {
210
- btrr: '8px',
211
- bblr: '8px',
212
- bbrr: '8px',
213
- btlr: '8px',
214
- radiusType: 'rounded'
215
- }
216
- }
217
- },
218
- tablet: {
219
- default: {
220
- normal: {
221
- btrr: '8px',
222
- bblr: '8px',
223
- bbrr: '8px',
224
- btlr: '8px',
225
- radiusType: 'rounded'
226
- },
227
- hover: {
228
- btrr: '8px',
229
- bblr: '8px',
230
- bbrr: '8px',
231
- btlr: '8px',
232
- radiusType: 'rounded'
233
- }
234
- }
156
+ normal: {
157
+ btrr: '8px',
158
+ bblr: '8px',
159
+ bbrr: '8px',
160
+ btlr: '8px',
161
+ radiusType: 'rounded'
235
162
  },
236
- mobile: {
237
- default: {
238
- normal: {
239
- btrr: '8px',
240
- bblr: '8px',
241
- bbrr: '8px',
242
- btlr: '8px',
243
- radiusType: 'rounded'
244
- },
245
- hover: {
246
- btrr: '8px',
247
- bblr: '8px',
248
- bbrr: '8px',
249
- btlr: '8px',
250
- radiusType: 'rounded'
251
- }
252
- }
163
+ hover: {
164
+ btrr: '8px',
165
+ bblr: '8px',
166
+ bbrr: '8px',
167
+ btlr: '8px',
168
+ radiusType: 'rounded'
253
169
  }
254
170
  }
255
171
  },
256
172
  {
257
173
  id: 'boxShadowBtnV2',
258
174
  type: 'shadow-v2',
259
- devices: {
260
- desktop: {
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: false
270
- },
271
- hover: {
272
- type: 'shadow-1',
273
- distance: '4px',
274
- blur: '4px',
275
- spread: '0px',
276
- color: '#121212',
277
- angle: 45,
278
- enable: false
279
- }
280
- }
175
+ default: {
176
+ normal: {
177
+ type: 'shadow-1',
178
+ distance: '4px',
179
+ blur: '4px',
180
+ spread: '0px',
181
+ color: '#121212',
182
+ angle: 45,
183
+ enable: false
184
+ },
185
+ hover: {
186
+ type: 'shadow-1',
187
+ distance: '4px',
188
+ blur: '4px',
189
+ spread: '0px',
190
+ color: '#121212',
191
+ angle: 45,
192
+ enable: false
281
193
  }
282
194
  },
283
195
  compoDefaultValue: {
284
- desktop: {
285
- default: {
286
- normal: {
287
- type: 'shadow-1',
288
- distance: '4px',
289
- blur: '4px',
290
- spread: '0px',
291
- color: '#121212',
292
- angle: 45,
293
- enable: true
294
- },
295
- hover: {
296
- type: 'shadow-1',
297
- distance: '4px',
298
- blur: '4px',
299
- spread: '0px',
300
- color: '#121212',
301
- angle: 45,
302
- enable: true
303
- }
304
- }
305
- },
306
- tablet: {
307
- default: {
308
- normal: {
309
- type: 'shadow-1',
310
- distance: '4px',
311
- blur: '4px',
312
- spread: '0px',
313
- color: '#121212',
314
- angle: 45,
315
- enable: true
316
- },
317
- hover: {
318
- type: 'shadow-1',
319
- distance: '4px',
320
- blur: '4px',
321
- spread: '0px',
322
- color: '#121212',
323
- angle: 45,
324
- enable: true
325
- }
326
- }
196
+ normal: {
197
+ type: 'shadow-1',
198
+ distance: '4px',
199
+ blur: '4px',
200
+ spread: '0px',
201
+ color: '#121212',
202
+ angle: 45,
203
+ enable: true
327
204
  },
328
- mobile: {
329
- default: {
330
- normal: {
331
- type: 'shadow-1',
332
- distance: '4px',
333
- blur: '4px',
334
- spread: '0px',
335
- color: '#121212',
336
- angle: 45,
337
- enable: true
338
- },
339
- hover: {
340
- type: 'shadow-1',
341
- distance: '4px',
342
- blur: '4px',
343
- spread: '0px',
344
- color: '#121212',
345
- angle: 45,
346
- enable: true
347
- }
348
- }
205
+ hover: {
206
+ type: 'shadow-1',
207
+ distance: '4px',
208
+ blur: '4px',
209
+ spread: '0px',
210
+ color: '#121212',
211
+ angle: 45,
212
+ enable: true
349
213
  }
350
214
  }
351
215
  },
@@ -377,21 +241,13 @@ const SubmitButtonSettings = [
377
241
  {
378
242
  id: 'backgroundColorV2',
379
243
  type: 'color-picker-v2',
380
- devices: {
381
- desktop: {
382
- default: {
383
- normal: 'brand',
384
- hover: 'highlight'
385
- }
386
- }
244
+ default: {
245
+ normal: 'brand',
246
+ hover: 'highlight'
387
247
  },
388
248
  compoDefaultValue: {
389
- desktop: {
390
- default: {
391
- normal: 'brand',
392
- hover: 'highlight'
393
- }
394
- }
249
+ normal: 'brand',
250
+ hover: 'highlight'
395
251
  },
396
252
  enableGradient: true
397
253
  },
@@ -410,19 +266,11 @@ const SubmitButtonSettings = [
410
266
  {
411
267
  id: 'textColorHover',
412
268
  type: 'color-picker-v2',
413
- devices: {
414
- desktop: {
415
- default: {
416
- hover: 'text-3'
417
- }
418
- }
269
+ default: {
270
+ hover: 'text-3'
419
271
  },
420
272
  compoDefaultValue: {
421
- desktop: {
422
- default: {
423
- hover: 'text-3'
424
- }
425
- }
273
+ hover: 'text-3'
426
274
  }
427
275
  },
428
276
  {
@@ -482,17 +330,23 @@ const SubmitButtonSettings = [
482
330
  {
483
331
  label: 'Left',
484
332
  value: 'left',
485
- type: 'align'
333
+ type: 'align',
334
+ tooltip: 'Align left',
335
+ iconName: 'gp-align-left'
486
336
  },
487
337
  {
488
338
  label: 'Center',
489
339
  value: 'center',
490
- type: 'align'
340
+ type: 'align',
341
+ tooltip: 'Align center',
342
+ iconName: 'gp-align-center'
491
343
  },
492
344
  {
493
345
  label: 'Right',
494
346
  value: 'right',
495
- type: 'align'
347
+ type: 'align',
348
+ tooltip: 'Align right',
349
+ iconName: 'gp-align-right'
496
350
  }
497
351
  ],
498
352
  devices: {
@@ -509,7 +363,6 @@ const SubmitButtonSettings = [
509
363
  type: 'paragraph-1'
510
364
  },
511
365
  hiddenSetting: {
512
- // color: true,
513
366
  transform: true,
514
367
  textAlign: true
515
368
  },