@gem-sdk/components 2.0.0-dev.368 → 2.0.0-dev.370

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 (42) hide show
  1. package/dist/cjs/article/components/ArticleDate.js +0 -1
  2. package/dist/cjs/article/components/ArticleReadMore.liquid.js +1 -1
  3. package/dist/cjs/article/setting/configs/ArticleContent/settings.js +1 -1
  4. package/dist/cjs/article/setting/configs/ArticleContent/uiV2.js +11 -1
  5. package/dist/cjs/article/setting/configs/ArticleExcerpt/settings.js +1 -1
  6. package/dist/cjs/article/setting/configs/ArticleImage/settings.js +5 -4
  7. package/dist/cjs/article/setting/configs/ArticleImage/uiV2.js +48 -4
  8. package/dist/cjs/article/setting/configs/ArticleReadMore/settings.js +96 -64
  9. package/dist/cjs/article/setting/configs/ArticleReadMore/uiV2.js +380 -97
  10. package/dist/cjs/builder.js +104 -102
  11. package/dist/cjs/index.js +2 -0
  12. package/dist/cjs/index.liquid.js +2 -0
  13. package/dist/cjs/line/components/Divider.liquid.js +1 -1
  14. package/dist/cjs/line/components/Line.liquid.js +1 -1
  15. package/dist/cjs/third-party/components/AppstleBundlesDiscounts.js +33 -0
  16. package/dist/cjs/third-party/components/AppstleBundlesDiscounts.liquid.js +12 -0
  17. package/dist/cjs/third-party/configs/AppstleBundlesDiscounts.js +12 -0
  18. package/dist/cjs/third-party/index.js +3 -1
  19. package/dist/cjs/third-party/next.js +5 -0
  20. package/dist/cjs/third-party/setting/AppstleBundlesDiscounts.js +146 -0
  21. package/dist/esm/article/components/ArticleDate.js +0 -1
  22. package/dist/esm/article/components/ArticleReadMore.liquid.js +1 -1
  23. package/dist/esm/article/setting/configs/ArticleContent/settings.js +1 -1
  24. package/dist/esm/article/setting/configs/ArticleContent/uiV2.js +11 -1
  25. package/dist/esm/article/setting/configs/ArticleExcerpt/settings.js +1 -1
  26. package/dist/esm/article/setting/configs/ArticleImage/settings.js +5 -4
  27. package/dist/esm/article/setting/configs/ArticleImage/uiV2.js +48 -4
  28. package/dist/esm/article/setting/configs/ArticleReadMore/settings.js +96 -64
  29. package/dist/esm/article/setting/configs/ArticleReadMore/uiV2.js +380 -97
  30. package/dist/esm/builder.js +104 -102
  31. package/dist/esm/index.js +1 -0
  32. package/dist/esm/index.liquid.js +1 -0
  33. package/dist/esm/line/components/Divider.liquid.js +1 -1
  34. package/dist/esm/line/components/Line.liquid.js +1 -1
  35. package/dist/esm/third-party/components/AppstleBundlesDiscounts.js +29 -0
  36. package/dist/esm/third-party/components/AppstleBundlesDiscounts.liquid.js +8 -0
  37. package/dist/esm/third-party/configs/AppstleBundlesDiscounts.js +8 -0
  38. package/dist/esm/third-party/index.js +3 -1
  39. package/dist/esm/third-party/next.js +5 -0
  40. package/dist/esm/third-party/setting/AppstleBundlesDiscounts.js +142 -0
  41. package/dist/types/index.d.ts +19 -2
  42. package/package.json +2 -2
@@ -72,16 +72,60 @@ const uiV2 = [
72
72
  ]
73
73
  },
74
74
  {
75
- label: {
76
- en: 'Redirect to'
77
- },
78
75
  controls: [
79
76
  {
80
77
  label: {
81
- en: 'After click'
78
+ en: 'Link'
79
+ },
80
+ setting: {
81
+ id: 'enableLink'
82
82
  },
83
+ options: {
84
+ labelVariant: 'primary',
85
+ toggleStyle: 'switch'
86
+ }
87
+ },
88
+ {
89
+ type: 'control',
90
+ conditionDisplay: 'enableLink == true',
83
91
  setting: {
84
92
  id: 'linkArticle'
93
+ },
94
+ label: {
95
+ en: 'After click'
96
+ }
97
+ },
98
+ {
99
+ label: {
100
+ en: 'Open new tab'
101
+ },
102
+ setting: {
103
+ id: 'openNewTab'
104
+ }
105
+ }
106
+ ]
107
+ },
108
+ {
109
+ label: {
110
+ en: 'SEO'
111
+ },
112
+ controls: [
113
+ {
114
+ type: 'control',
115
+ setting: {
116
+ id: 'alt'
117
+ },
118
+ label: {
119
+ en: 'Alt text'
120
+ }
121
+ },
122
+ {
123
+ type: 'control',
124
+ setting: {
125
+ id: 'title'
126
+ },
127
+ label: {
128
+ en: 'Image title'
85
129
  }
86
130
  }
87
131
  ]
@@ -4,15 +4,33 @@ const ArticleReadMoreSettings = [
4
4
  controls: [
5
5
  {
6
6
  id: 'readMoreType',
7
- type: 'option:value',
7
+ label: 'Style',
8
+ popoverLabel: 'Style',
9
+ type: 'layout-selector',
10
+ iconViewBox: '0 0 80 48',
11
+ enableItemBackground: true,
12
+ itemPerRow: 2,
13
+ itemSpacing: 'large',
8
14
  options: [
9
15
  {
10
- label: 'Default',
11
- value: 'button'
16
+ label: 'Filled Square',
17
+ value: 'button',
18
+ iconName: 'gp-article-filled-square'
12
19
  },
13
20
  {
14
- label: 'Text only',
15
- value: 'text'
21
+ label: 'Rounded',
22
+ value: 'rounded',
23
+ iconName: 'gp-article-rounded'
24
+ },
25
+ {
26
+ label: 'Outline',
27
+ value: 'outline',
28
+ iconName: 'gp-article-outline'
29
+ },
30
+ {
31
+ label: 'Text',
32
+ value: 'text',
33
+ iconName: 'gp-article-link'
16
34
  }
17
35
  ],
18
36
  default: 'button'
@@ -39,7 +57,7 @@ const ArticleReadMoreSettings = [
39
57
  id: 'iconVisible',
40
58
  label: 'Icon Visible',
41
59
  type: 'toggle',
42
- default: false
60
+ default: true
43
61
  },
44
62
  {
45
63
  id: 'iconSvg',
@@ -154,52 +172,6 @@ const ArticleReadMoreSettings = [
154
172
  default: 'div'
155
173
  }
156
174
  ]
157
- },
158
- {
159
- id: 'background',
160
- type: 'background-media',
161
- ignoreReRender: true,
162
- devices: {
163
- desktop: {
164
- default: {
165
- type: 'color',
166
- color: 'transparent',
167
- image: {
168
- src: '',
169
- width: 0,
170
- height: 0
171
- },
172
- size: 'cover',
173
- position: {
174
- x: 50,
175
- y: 50
176
- },
177
- repeat: 'no-repeat',
178
- attachment: 'scroll'
179
- }
180
- }
181
- },
182
- compoDefaultValue: {
183
- desktop: {
184
- default: {
185
- type: 'color',
186
- color: '#DDDDDD',
187
- image: {
188
- src: 'https://ucarecdn.com/5e27d43d-eb1e-4e71-b7e1-4158f3071bb6/-/format/auto/',
189
- width: 1200,
190
- height: 480
191
- },
192
- size: 'cover',
193
- position: {
194
- x: 50,
195
- y: 50
196
- },
197
- repeat: 'no-repeat',
198
- attachment: 'scroll',
199
- preload: false
200
- }
201
- }
202
- }
203
175
  }
204
176
  ]
205
177
  },
@@ -290,16 +262,16 @@ const ArticleReadMoreSettings = [
290
262
  devices: {
291
263
  desktop: {
292
264
  default: {
293
- normal: 'brand',
294
- hover: 'highlight'
265
+ normal: '#212121',
266
+ hover: '#303030'
295
267
  }
296
268
  }
297
269
  },
298
270
  compoDefaultValue: {
299
271
  desktop: {
300
272
  default: {
301
- normal: 'brand',
302
- hover: 'highlight'
273
+ normal: '#212121',
274
+ hover: '#303030'
303
275
  }
304
276
  }
305
277
  }
@@ -317,6 +289,38 @@ const ArticleReadMoreSettings = [
317
289
  normal: true
318
290
  }
319
291
  },
292
+ {
293
+ id: 'backgroundImage',
294
+ type: 'background-image',
295
+ devices: {
296
+ desktop: {
297
+ default: {
298
+ normal: {},
299
+ hover: {}
300
+ }
301
+ }
302
+ },
303
+ compoDefaultValue: {
304
+ desktop: {
305
+ default: {
306
+ normal: {
307
+ image: {
308
+ src: 'https://ucarecdn.com/5e27d43d-eb1e-4e71-b7e1-4158f3071bb6/-/format/auto/',
309
+ width: 1200,
310
+ height: 480
311
+ }
312
+ },
313
+ hover: {
314
+ image: {
315
+ src: 'https://ucarecdn.com/5e27d43d-eb1e-4e71-b7e1-4158f3071bb6/-/format/auto/',
316
+ width: 1200,
317
+ height: 480
318
+ }
319
+ }
320
+ }
321
+ }
322
+ }
323
+ },
320
324
  {
321
325
  id: 'textColorBtnState',
322
326
  type: 'color-picker-v2',
@@ -387,6 +391,31 @@ const ArticleReadMoreSettings = [
387
391
  }
388
392
  }
389
393
  }
394
+ },
395
+ {
396
+ id: 'boxShadowBtnV2',
397
+ type: 'shadow-v2',
398
+ devices: {
399
+ desktop: {
400
+ default: {
401
+ normal: {}
402
+ }
403
+ }
404
+ },
405
+ compoDefaultValue: {
406
+ desktop: {
407
+ default: {
408
+ normal: {
409
+ type: 'shadow-2',
410
+ distance: '12px',
411
+ blur: '12px',
412
+ spread: '0px',
413
+ color: 'rgba(18, 18, 18, 0.2)',
414
+ angle: 45
415
+ }
416
+ }
417
+ }
418
+ }
390
419
  }
391
420
  ]
392
421
  },
@@ -427,13 +456,18 @@ const ArticleReadMoreSettings = [
427
456
  id: 'typoBtn',
428
457
  type: 'typography-v2',
429
458
  default: {
430
- type: 'subheading-3',
459
+ type: 'paragraph-1',
431
460
  custom: {
432
461
  lineHeight: {
433
462
  desktop: '120%',
434
463
  tablet: '120%',
435
464
  mobile: '120%'
436
- }
465
+ },
466
+ letterSpacing: '0px',
467
+ hasShadowText: false
468
+ },
469
+ attrs: {
470
+ color: '#ffffff'
437
471
  }
438
472
  },
439
473
  ignoreReRender: true,
@@ -565,14 +599,12 @@ const ArticleReadMoreSettings = [
565
599
  {
566
600
  id: 'spacing',
567
601
  label: 'Spacing Icon',
568
- type: 'input:unit',
602
+ type: 'input:slider',
569
603
  units: [
570
- 'px',
571
- 'em',
572
- 'rem',
573
- '%'
604
+ 'px'
574
605
  ],
575
- placeholder: 'Auto',
606
+ step: 1,
607
+ max: 40,
576
608
  default: '8px'
577
609
  }
578
610
  ]